FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
310 stars 133 forks source link

Flatbuffers support? #196

Open jfuehner opened 4 years ago

jfuehner commented 4 years ago

Was curious if there are any plans to provide factory/objectmapper support for flatbuffers similar to what's been done with protobuf? Specifically, being able to de/serialize to/from POJO's...

Thanks!

cowtowncoder commented 4 years ago

I don't think anyone is working on that, but implementation for backend might be doable. It only requires implementation of "streaming" API (JsonParser, JsonGenerator, and factory that creates those), after which binding to/from POJOs is same across backends.

If you or anyone else would like to try that, starting with protobuf implementation could help. It is not a trivial thing to do necessarily (since protobuf format is different in that property ids are used, not names as with json), but doable.