Skip navigation.
Arch2Arch Tab BEA.com

Article: An Introduction to JSON
Subject:  Serializing objects to JSON: Xstream vs json-lib
Date:  2007-03-07 12:32:59
From:  digitaslili

I started with using json-lib for its rich functionalities, then there was a problem with special characters – when a string contains both “[]” and “/”, exception was thrown and the next node couldn’t be reached to continue the parsing. So I switched to Xstream, a little weird method name “toXML”, but it outputs all the special characters well without complain.