JSON-lib is a java library for serializing and de-serializing
java beans, maps, arrays and collections in JSON format.
Get the latest binaries from sourceforge
http://json-lib.sourceforge.net/.
This requires the libraries (
json-lib-2.4-jdk15.jar, xom-1.2.7.jar, ezmorph.jar
commons-lang.jar, commons-collections.jar, commons-beanutils-1.7.jar and
commons-logging-1.1.1.jar) to be in classpath.
The following example shows converting a Map to JSON Object.