### Question:
JsonUtil { public static <T> T getJsonObject(String jsonString, Class<T> clazz) { T t = null; try { t = mapper.readValue(jsonString, clazz); } catch (Exception e) { e.printStackTrace(); } finally { jsonString = null; clazz = null; } return t; }  static String getJsonString(Object obj); static T getJsonObject(String jsonString, Class<T> clazz); static T getJsonObjectArray(String jsonString, TypeReference<T> jsonTypeReference); static String getJsonNodeAsText(String jsonKey, String content); static Iterator<JsonNode> getJsonNodes(String jsonKey, String content); static JsonNode getJsonNode(String jsonKey, String content); static JsonNode getJsonNode(String content); static ObjectNode createObjectNode(); static ArrayNode createArrayNode();  }### Answer:
@Test public void test2(){ String json="{\"aaa\":{\"bbb\":\"2222\"}}"; ObjectNode objectNode = JsonUtil.getJsonObject(json, ObjectNode.class); String text = objectNode.get("aaa").get("bbb").asText(); System.out.println(" >> "+text); }