@Test public void test_toObject_custom() throws RdapClientException { Map<String, String> custom = new HashMap<String, String>(); JsonUtil.toObject(jsonCustom, DomainDto.class, custom); String customString = "{\"innerCustom1\":\"1\"," + "\"innerCustom2\":[\"1\",\"2\"]}"; assertEquals(customString, custom.get("myCustom")); }
public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap);  }