I have a request which gets a response like this one right here:
[
  [
    {
      "id": 0,
      "name": "xxxx"
    },
    {
      "id": 1,
      "name": "yyyy"
    },
  ]
]
As you can see, the objects are "encapsulated" and the only way I've found to parse them is this:
private static final TypeReference<List<List<Map<String, Object>>>> test = new TypeReference<List<List<Map<String, Object>>>>() {};
public List<List<Map<String, Object>>> getTransactions() throws IOException {
    return mapper.convertValue(send("/someapi/), test);
}
This seems very inconvenient because to access the objects I have to ".get(i).get(j)".. Is this actually the way to do it or am I doing it wrong?
 
     
    
>> just seemed to inelegant to me. If that's what it takes, I'm good.
– M. Malkon Jul 23 '18 at 21:53