JSON Simple is a java library for encoding and decoding JSON text.
Get the latest binaries from
http://code.google.com/p/json-simple/.
The following example shows converting a list to JSON Array.
List list = new ArrayList();
list.add("one");
list.add(new Integer(2));
list.add(new Long(3));
list.add(new Double(4.26));
list.add(true);
list.add(null);