### Question:
JSONUtils { public static JsonNode toJsonNode(Object obj) { return objectMapper.valueToTree(obj); } private  JSONUtils(); static ArrayNode createArrayNode(); static ObjectNode createObjectNode(); static JsonNode toJsonNode(Object obj); static String toJsonString(Object object, SerializationFeature feature); static T parseObject(String json, Class<T> clazz); static List<T> toList(String json, Class<T> clazz); static boolean checkJsonValid(String json); static String findValue(JsonNode jsonNode, String fieldName); static Map<String, String> toMap(String json); static Map<K, V> toMap(String json, Class<K> classK, Class<V> classV); static String toJsonString(Object object); static ObjectNode parseObject(String text); static ArrayNode parseArray(String text);  }### Answer:
@Test public void toJsonNodeTest() { Property property = new Property(); property.setProp("ds"); property.setDirect(Direct.IN); property.setType(DataType.VARCHAR); property.setValue("sssssss"); String str = "{\"prop\":\"ds\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"sssssss\"}"; JsonNode jsonNodes = JSONUtils.toJsonNode(property); String s = JSONUtils.toJsonString(jsonNodes); Assert.assertEquals(s, str); }