Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you generate your JSON with Java using Jackson, it offers Jackson-Views, a very nifty way to define sets of JSON properties according to use case.

* http://wiki.fasterxml.com/JacksonJsonViews

* http://techtraits.com/programming/2011/08/12/implementing-ja...



Neat! Jackson also has a tree data model that can be used like so:

    user.path("them").path("public_keys").path("primary").path("bundle").textValue(); // null if any node is missing




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: