Flexjson is a lightweight java library for serializing and de-serializing
java beans, maps, arrays and collections in JSON format.
Get the latest binaries from
This requires the library flexjson-2.1.jar to be in classpath.
The following example shows how to serialize a Java Object to the given Writer stream.