Today’s verdict on JSON deserialization
Written on February 13, 2009 – 12:11 pm | by mpayne
XStream == FAIL (still good for xml)
http://xstream.codehaus.org/json-tutorial.html
Does not handle unamed paths/nodes(per mailing list).
FLEXJSON == Good
http://flexjson.sourceforge.net/
No problems with {”type”:”chairmanslife”,”hbdFlag”:”Y”,”htkLifeCredit”:”0″,”lifeMethodCredit”:”35,644″,”lifeThreshold”:”165,000″,”nonAffiliatedFlag”:”N”,”pmlFixedLifeCredit”:”7,225″,”pmlVariableLifeCredit”:”28,419″}
JSONDeserializer<Detail> deserializer = new JSONDeserializer<Detail>();
detail = deserializer.use(null, Detail.class).deserialize(blobString);