Jackson JSON User Group

JSON in Java the Right Way -- Action, Jackson!

After couple of months of steady development, Jackson 1.8.0 was just released. Full list of features can be found from [http://wiki.fasterxml.com/JacksonRelease18], but here are couple of noteworthy things:

  • Customized low-level output encoding: can escape non-ASCII characters; or use HTML entities, by plugging additional handlers to JsonGenerator
  • Custom property naming strategies (see here) -- possible to get things to work with, say, Twitter's C-style naming convention, without annotations.
  • Finally full support for configuration of Map key types (via annotations, adding serializer, deserializers from modules etc. etc)
  • ObjectMapper.readValues() for reading sequences of values of same type
  • Ability to register implementations of abstract types (which also allows defining what things like List.class should become)
  • JsonNode.with() to do "upsert" (get Object property; or if one does not exist, create, add and return)
  • Support for format auto-detection (can auto-detect JSON, XML and Smile content, each JsonFactory implements detection separately so it is easy to add more support)

Compared to earlier releases, focus this time more on handling oldest feature requests (pluggable naming convention, quoting were oldest open RFEs); as well as continued emphasis on extensibility.

 

Views: 159

Tags: 1.8, jackson, json

Comment by Andrei Pozolotin on April 25, 2011 at 7:54am
cool. man, you have so many features, you now must write a book :-)
Comment by Tatu Saloranta on May 16, 2011 at 2:58pm
:-)
Comment by Mohammad Zafar on September 8, 2011 at 2:03am
Good job!

Comment

You need to be a member of Jackson JSON User Group to add comments!

Join Jackson JSON User Group

© 2012   Created by Tatu Saloranta.   Powered by .

Badges  |  Report an Issue  |  Terms of Service