Jackson provides many ways of reading this JSON. One simple way would be doing something like this:
Map<String, Object> result = new ObjectMapper().readValue("JSON_Input_Here", Map.class);
Additionally, you could do something like:
JsonNode input = new ObjectMapper().readTree("JSON_Input_Here");
I’m not sure how a map would handle a Json array, but the JsonNode object lets you check the type of the Json input (Object vs Array …).
Here is a simple and quick resource you can use:
http://wiki.fasterxml.com/JacksonInFiveMinutes
solved How to read and parse this JSON using Jackson? [closed]