Possible duplicate:Best Java JSON library?
How can we read a JSON object in JSP, Servlet, or in any other Java program?
I would recommend using Gson . The advantage is that it supports generics very well and also has high performance. I have already posted an example Gson#fromJson(): Converting JSON to Java
Gson#fromJson()
The json library has a JAR from. Also, based on this answer , you can look at JSON-lib
JSON.org contains a lot of good information about reading JSON in Java (and other languages). They provide a good reference implementation that many other libraries use.
Take a look at Jackson .
Using a library, such as described at: http://www.json.org/java/
Looking at the gson description , it looks like it will do the job too.