test_class.file: json-rpc/src/test/java/com/vmware/ovsdb/jsonrpc/v1/util/JsonUtilTest.java
test_class.identifier: JsonUtilTest
test_case.body: @Test
    public void testDeserialize() throws IOException {
      String jsonString = "{\"id\":\"id\", \"method\":\"method\", \"params\":[]}";
      JsonRpcV1Request request = new JsonRpcV1Request("id", "method");
      assertEquals(
          request, JsonUtil.deserialize(jsonString, JsonRpcV1Request.class)
      );
      String tmpFile = "tempfile";
      Path file = Paths.get(tmpFile);
      Files.write(file, Collections.singletonList(jsonString));
      assertEquals(
          request, JsonUtil.deserialize(file.toUri().toURL(), JsonRpcV1Request.class)
      );
      Files.delete(file);
  
      assertNull(JsonUtil.deserializeNoException("{}", JsonRpcV1Request.class));
    }
test_case.class_method_signature: JsonUtilTest.testDeserialize()
test_case.full_signature: @Test public void testDeserialize()
test_case.identifier: testDeserialize
test_case.invocations: assertEquals deserialize get write singletonList assertEquals deserialize toURL toUri delete assertNull deserializeNoException
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDeserialize()
focal_class.declarator: objectMapper = new ObjectMapper()
focal_class.modifier: private static final
focal_class.original_string: private static final ObjectMapper objectMapper = new ObjectMapper();
focal_class.type: ObjectMapper
focal_class.var_name: objectMapper
focal_class.file: json-rpc/src/main/java/com/vmware/ovsdb/jsonrpc/v1/util/JsonUtil.java
focal_class.identifier: JsonUtil
focal_class.class_method_signature: JsonUtil.treeToValue(JsonNode jsonNode, Class<T> klass)
focal_class.full_signature: public static T treeToValue(JsonNode jsonNode, Class<T> klass)
focal_class.identifier: treeToValue
focal_class.modifiers: public static
focal_class.parameters: (JsonNode jsonNode, Class<T> klass)
focal_class.return: T
focal_class.signature: T treeToValue(JsonNode jsonNode, Class<T> klass)
focal_class.class_method_signature: JsonUtil.treeToValueNoException(JsonNode jsonNode, Class<T> klass)
focal_class.full_signature: public static T treeToValueNoException(JsonNode jsonNode, Class<T> klass)
focal_class.identifier: treeToValueNoException
focal_class.modifiers: public static
focal_class.parameters: (JsonNode jsonNode, Class<T> klass)
focal_class.return: T
focal_class.signature: T treeToValueNoException(JsonNode jsonNode, Class<T> klass)
focal_class.class_method_signature: JsonUtil.treeToValueNoException(JsonNode jsonNode, TypeReference<?> valueTypeRef)
focal_class.full_signature: public static T treeToValueNoException(JsonNode jsonNode, TypeReference<?> valueTypeRef)
focal_class.identifier: treeToValueNoException
focal_class.modifiers: public static
focal_class.parameters: (JsonNode jsonNode, TypeReference<?> valueTypeRef)
focal_class.return: T
focal_class.signature: T treeToValueNoException(JsonNode jsonNode, TypeReference<?> valueTypeRef)
focal_class.class_method_signature: JsonUtil.toJsonNode(Object object)
focal_class.full_signature: public static JsonNode toJsonNode(Object object)
focal_class.identifier: toJsonNode
focal_class.modifiers: public static
focal_class.parameters: (Object object)
focal_class.return: JsonNode
focal_class.signature: JsonNode toJsonNode(Object object)
focal_class.class_method_signature: JsonUtil.deserialize(String jsonString, Class<T> klass)
focal_class.full_signature: public static T deserialize(String jsonString, Class<T> klass)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (String jsonString, Class<T> klass)
focal_class.return: T
focal_class.signature: T deserialize(String jsonString, Class<T> klass)
focal_class.class_method_signature: JsonUtil.deserialize(URL url, Class<T> klass)
focal_class.full_signature: public static T deserialize(URL url, Class<T> klass)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (URL url, Class<T> klass)
focal_class.return: T
focal_class.signature: T deserialize(URL url, Class<T> klass)
focal_class.class_method_signature: JsonUtil.deserializeNoException(String jsonString, Class<T> klass)
focal_class.full_signature: public static T deserializeNoException(String jsonString, Class<T> klass)
focal_class.identifier: deserializeNoException
focal_class.modifiers: public static
focal_class.parameters: (String jsonString, Class<T> klass)
focal_class.return: T
focal_class.signature: T deserializeNoException(String jsonString, Class<T> klass)
focal_class.class_method_signature: JsonUtil.serializeNoException(Object object)
focal_class.full_signature: public static String serializeNoException(Object object)
focal_class.identifier: serializeNoException
focal_class.modifiers: public static
focal_class.parameters: (Object object)
focal_class.return: String
focal_class.signature: String serializeNoException(Object object)
focal_class.class_method_signature: JsonUtil.serialize(Object object)
focal_class.full_signature: public static String serialize(Object object)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (Object object)
focal_class.return: String
focal_class.signature: String serialize(Object object)
focal_class.class_method_signature: JsonUtil.createArrayNode()
focal_class.full_signature: public static ArrayNode createArrayNode()
focal_class.identifier: createArrayNode
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ArrayNode
focal_class.signature: ArrayNode createArrayNode()
focal_class.class_method_signature: JsonUtil.readTree(String string)
focal_class.full_signature: public static JsonNode readTree(String string)
focal_class.identifier: readTree
focal_class.modifiers: public static
focal_class.parameters: (String string)
focal_class.return: JsonNode
focal_class.signature: JsonNode readTree(String string)
focal_method.body: public static <T> T deserialize(String jsonString, Class<T> klass) throws IOException {
      return objectMapper.readValue(jsonString, klass);
    }
focal_method.class_method_signature: JsonUtil.deserialize(String jsonString, Class<T> klass)
focal_method.full_signature: public static T deserialize(String jsonString, Class<T> klass)
focal_method.identifier: deserialize
focal_method.invocations: readValue
focal_method.modifiers: public static
focal_method.parameters: (String jsonString, Class<T> klass)
focal_method.return: T
focal_method.signature: T deserialize(String jsonString, Class<T> klass)