[code="java"]
ObjectMapper mapper = new ObjectMapper();
JsonNode jsonNode = mapper.readTree(json);
JsonNode jn = jsonNode.get("indexs");
System.out.println(jn.toString());
Indexs p = mapper.readValue(json, Indexs.class);
[/code]
[code="java"]
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.abc.search.vo.IndexField]: can not instantiate from JSON object (need to add/enable type information?)
at Source: java.io.StringReader@33a626ac; line: 1, column: 70
[/code]