Automatically serialize POJOs to and from JSON
by ricardoz on Apr.22, 2009, under JavaScript, Tips, Web related
The best tool I’ve found so far to serialize POJOs to JSON (and back again) is XStream, it’s automatic, simple and elegant, check it out.
by ricardoz on Apr.22, 2009, under JavaScript, Tips, Web related
The best tool I’ve found so far to serialize POJOs to JSON (and back again) is XStream, it’s automatic, simple and elegant, check it out.
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!
A few highly recommended friends...
All entries, chronologically...
May 4th, 2009 on 11:39 pm
XStream API is indeed delightfully simple.
But for another alternative with equally simple API, and full focus on json (no mappings to/from xml needed), you might want to check Jackson at [http://jackson.codehaus.org/Tutorial].
August 19th, 2009 on 2:35 am
i’m using another json api http://code.google.com/p/json-simple looked good to me, haven’t explored XStream though.. will do that sometime!