To convert the JSON to java object, use fromJson() method.You need to register the InstanceCreator of a java class type with Gson first before using it. For example, Department.java does not have any default constructor. public class Support private String status private List reasons Third problem: parsing, If response string contains your example data, simply parse like this| Recommendjava - Complex object (de)serialization into JSON using GSON. Question. I have a very long JSON to parse with Gson, but for brevity I have trimmed it to this exampleHow to change the mouse cursor in java? Java Enum getDeclaringClass vs getClass. JAXB - Ignore element. The org.json.simple package contains important classes for JSON API. JSONValue. JSONObject. JSONArray.Lets see a simple example to encode JSON object in java. In the Gson example they have provided they have made the class static, can you please explain why they did it and why I should not ?? code.google.com/p/google-gson/source/browse/trunk/extras/src/. Youre welcome. Using this as a reference I have described the structure of my Json data and can grab the information as needed until I get to nest records and arrays. Parsing a complex Json Object using GSON in Java. However my JSON data is nested several times over. For example For our example for JSON to POJO/Java object conversion, we will take a complex example with nested object and arrays. We will use arrays, list and Map in java objects for conversion. Check the full example.