I have been receiving JSON objects as a response from HttpsURLConnection. I have been using this to parse the response.
ObjectMapper map = new ObjectMapper();
JsonNode node = map.readTree(conn.getInputStream());
This has been working fine for me but now I am receiving arrays. How can I parse them?
This is an example of the response that I receive:
"value":
[1
]
0:
{
"ID": "2135125324"
"name": "John"
"2ndName": null
"lastName": "James"
}