Mapping Json Array to POJO using Jackson
问题 I have a JSON array of the form: [ [ 1232324343, "A", "B", 3333, "E" ], [ 12345424343, "N", "M", 3133, "R" ] ] I want to map each element of the parent array to a POJO using the Jackson library. I tried this: ABC abc = new ABC(); ObjectMapper mapper = new ObjectMapper(); JsonNode jsonNode = mapper.readTree(data).get("results"); if (jsonNode.isArray()) { for (JsonNode node : jsonNode) { String nodeContent = mapper.writeValueAsString(node); abc = mapper.readValue(nodeContent,ABC.class); System