String JSON = \"http://www.json-generator.com/j/cglqaRcMSW?indent=4\";
JSONObject jsonObject = new JSONObject(JSON);
JSONObject getSth = jsonObject.getJSONObject(\"
While the json begins with "[" and ends with "]" that means this is the Json Array, use JSONArray instead:
JSONArray jsonArray = new JSONArray(JSON);
And then you can map it with the List Test Object if you need:
ObjectMapper mapper = new ObjectMapper();
List listTest = mapper.readValue(String.valueOf(jsonArray), List.class);