Map JSON To List<Map<<String, Object>>
You will need to pass a TypeReference
to readValue
with the desired result type:
ObjectMapper mapper = new ObjectMapper();
List<Map<String, Object>> data = mapper.readValue(json, new TypeReference<List<Map<String, Object>>>(){});