Jackson for data formats other than JSON

Out of the box, Jackson supports writing POJOs as JSON (serialization) as well as reading POJOs from JSON (deserialization). Starting with Jackson 1.6 there is also equivalent support for "Smile" binary format, which has data model fully compatible with JSON (i.e. it is "binary JSON serialization"). With 2.0, Smile support has been separated to an extension module.

But beyond work on JSON (and strictly data model equivalent format(s)), there are also projects underway to reuse Jackson data binding on formats that are not JSON compatible. This is based on observation that although low-level APIs were created to work on JSON, they are simple enough to work on other simple data formats, with minor (or no) changes at API level; just by implementing JsonParser and JsonGenerator abstractions (and if necessary, related pieces like JsonFactory) it is often possible to add support for binding POJOs to/from alternative data formats.

Projects that aim to support alternative data formats include:

Projects lead by FasterXML:

and some incomplete projects (concept stage):

Other related projects:

See Also

Jackson Module projects also expand Jackson functionality.


CategoryJackson

JacksonOutsideofJSON (last edited 2013-04-25 04:13:42 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC