@Test public void testDeserializeSearchSpec_01() { String file = "json/JsonUtilTest__testDeserializeSearchSpec_01.json"; QuerySpec ss = deserialize(file, QuerySpec.class); assertEquals("01", 1, ss.getConditions().size()); QueryCondition sc = ss.getConditions().iterator().next(); String field = sc.getField().toString(); assertEquals("02", "gatheringEvent.dateTimeBegin", field); assertTrue("03", ss.isConstantScore()); }
public static <T> T deserialize(byte[] json, Class<T> type) { ObjectMapper om = oml.getObjectMapper(type); return deserialize(om, json, type); }
JsonUtil { public static <T> T deserialize(byte[] json, Class<T> type) { ObjectMapper om = oml.getObjectMapper(type); return deserialize(om, json, type); } }
JsonUtil { public static <T> T deserialize(byte[] json, Class<T> type) { ObjectMapper om = oml.getObjectMapper(type); return deserialize(om, json, type); } private  JsonUtil(); }
JsonUtil { public static <T> T deserialize(byte[] json, Class<T> type) { ObjectMapper om = oml.getObjectMapper(type); return deserialize(om, json, type); } private  JsonUtil(); static T deserialize(byte[] json, Class<T> type); static T deserialize(byte[] json, TypeReference<T> type); static T deserialize(ObjectMapper om, byte[] json, Class<T> type); static T deserialize(ObjectMapper om, byte[] json, TypeReference<T> type); static T deserialize(String json, Class<T> type); static T deserialize(String json, TypeReference<T> type); static Map<String, Object> deserialize(byte[] json); static Map<String, Object> deserialize(String json); static Map<String, Object> deserialize(InputStream src); static T deserialize(InputStream src, Class<T> type); static T deserialize(InputStream src, TypeReference<T> type); static Object readField(byte[] json, String path); static Object readField(String json, String path); static Object readField(InputStream src, String path); static Object readField(Map<String, Object> map, String path); @SuppressWarnings("unchecked") static Object readField(Map<String, Object> map, Path path); static T convert(Map<String, Object> map, Class<T> type); static T convert(Map<String, Object> map, TypeReference<T> type); static byte[] serialize(Object obj); static String toJson(Object obj); static String toPrettyJson(Object obj); static String toPrettyJson(Object obj, boolean terse); }
JsonUtil { public static <T> T deserialize(byte[] json, Class<T> type) { ObjectMapper om = oml.getObjectMapper(type); return deserialize(om, json, type); } private  JsonUtil(); static T deserialize(byte[] json, Class<T> type); static T deserialize(byte[] json, TypeReference<T> type); static T deserialize(ObjectMapper om, byte[] json, Class<T> type); static T deserialize(ObjectMapper om, byte[] json, TypeReference<T> type); static T deserialize(String json, Class<T> type); static T deserialize(String json, TypeReference<T> type); static Map<String, Object> deserialize(byte[] json); static Map<String, Object> deserialize(String json); static Map<String, Object> deserialize(InputStream src); static T deserialize(InputStream src, Class<T> type); static T deserialize(InputStream src, TypeReference<T> type); static Object readField(byte[] json, String path); static Object readField(String json, String path); static Object readField(InputStream src, String path); static Object readField(Map<String, Object> map, String path); @SuppressWarnings("unchecked") static Object readField(Map<String, Object> map, Path path); static T convert(Map<String, Object> map, Class<T> type); static T convert(Map<String, Object> map, TypeReference<T> type); static byte[] serialize(Object obj); static String toJson(Object obj); static String toPrettyJson(Object obj); static String toPrettyJson(Object obj, boolean terse); static final Object MISSING_VALUE; }