@Test public void testNewJson() { String j = JsonUtils.newJson("key", "value"); assertEquals("{\"key\":value}", j); }
public static String newJson(String key, Object value) { return newObjectNode(key, value).toString(); }
JsonUtils { public static String newJson(String key, Object value) { return newObjectNode(key, value).toString(); } }
JsonUtils { public static String newJson(String key, Object value) { return newObjectNode(key, value).toString(); } private  JsonUtils(); }
JsonUtils { public static String newJson(String key, Object value) { return newObjectNode(key, value).toString(); } private  JsonUtils(); static String toJson(Object o, boolean verbose); static Object fromJson(String s, Class<?> clazz); static Object jacksonFromJson(String s, Class<?> clazz); static String newJson(String key, Object value); static ObjectNode cloneObjectNode(ObjectNode src); static ObjectNode newObjectNode(String key, Object value); static ObjectNode addNode(ObjectNode tree, String fieldName, Object fieldValue); static JsonNode getJsonNode(String tree, String fieldName); static ObjectNode newNode(); static ArrayNode newArrayNode(); static ObjectNode toObjectNode(String tree); static JSONObject toJSONObject(String json); static boolean isValid(String tree); static HashMap<String, JsonNode> jsonNodeToHashMap(JsonNode jsonNode); static String jsonKeyValue(String key, String value); static BigDecimal decimalValue(JsonNode v); }
JsonUtils { public static String newJson(String key, Object value) { return newObjectNode(key, value).toString(); } private  JsonUtils(); static String toJson(Object o, boolean verbose); static Object fromJson(String s, Class<?> clazz); static Object jacksonFromJson(String s, Class<?> clazz); static String newJson(String key, Object value); static ObjectNode cloneObjectNode(ObjectNode src); static ObjectNode newObjectNode(String key, Object value); static ObjectNode addNode(ObjectNode tree, String fieldName, Object fieldValue); static JsonNode getJsonNode(String tree, String fieldName); static ObjectNode newNode(); static ArrayNode newArrayNode(); static ObjectNode toObjectNode(String tree); static JSONObject toJSONObject(String json); static boolean isValid(String tree); static HashMap<String, JsonNode> jsonNodeToHashMap(JsonNode jsonNode); static String jsonKeyValue(String key, String value); static BigDecimal decimalValue(JsonNode v);  }