@Test public void testReadField_07() { try (InputStream is = JsonUtilTest.class.getResourceAsStream("JsonUtilTest.json")) { Object value = JsonUtil.readField(is, "kids.3"); assertTrue("01", value == JsonUtil.MISSING_VALUE); } catch (IOException e) { throw new RuntimeException(e); } }
public static Object readField(byte[] json, String path) { return readField(deserialize(json), path); }
JsonUtil { public static Object readField(byte[] json, String path) { return readField(deserialize(json), path); } }
JsonUtil { public static Object readField(byte[] json, String path) { return readField(deserialize(json), path); } private  JsonUtil(); }
JsonUtil { public static Object readField(byte[] json, String path) { return readField(deserialize(json), path); } 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 Object readField(byte[] json, String path) { return readField(deserialize(json), path); } 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; }