Registry / serialization / jackson-dataformat-protobuf

jackson-dataformat-protobuf

JSON →
library2.22.0javamavenunverified

Jackson extension for reading and writing Protocol Buffers encoded data using Jackson abstractions.

<dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-protobuf</artifactId> <version>2.22.0</version> </dependency>
INSTALL
IMPORT
SIG · JACKSON-DATAFORMAT
J
jackson-dataformat-protobuf
serializationjavav2.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProtobufMapper
com.fasterxml.jackson.dataformat.protobuf.ProtobufMapper

Reading protobuf data into a Java object using Jackson.

import com.fasterxml.jackson.dataformat.protobuf.ProtobufMapper; import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchema; public class Example { public void read() throws Exception { ProtobufMapper mapper = new ProtobufMapper(); ProtobufSchema schema = mapper.generateSchemaFor(MyClass.class); MyClass obj = mapper.readValue(protoBytes, MyClass.class); } }
Debug
Known issues
gotchaRequires a Protobuf schema definition; not compatible with all protobuf features.
fix
Ensure your .proto files are compiled and schema is available.
affects: >=2.10.0
Upgrade
Version history
2.22.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jackson-dataformat-protobuf — mvn dependency:get jackson-dataformat-protobuf · libregistry