When calling the toList() method of a JSONArray which contains JSONObject the returned list contains HashMap elements. The documentation mentions: Returns a java.util.List containing all of the ...
You can also create a JsonItem by newing an object of a JsonItem's subclass as following. // public JsonString(string value); // public JsonString(char value); JsonItem item1 = new JsonString("value1" ...