Archive for February 13th, 2009

Today’s verdict on JSON deserialization

Friday, February 13th, 2009

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);