Jackson module that adds support for serializing and deserializing Google's Protocol Buffers to and from JSON.
To use module on Maven-based projects, use following dependency:
<dependency>
<groupId>com.hubspot.jackson</groupId>
<artifactId>jackson-datatype-protobuf</artifactId>
<version>0.9.3</version>
</dependency>
(or whatever version is most up-to-date at the moment)
Registration is done as follows:
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new ProtobufModule());
after which functionality is available for all normal Jackson operations.