@Test public void parseEmpty() throws Exception { String input = "{}"; SanskritObjectImpl result = new SanskritObjectImpl(objectMapperSupplier); JsonUtils.parse(objectMapperSupplier, null, input, result); assertNull(result.getString("A")); }
public static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result) throws SanskritException { try { JsonNode jsonNode = objectMapperSupplier.getObjectMapper(version).readTree(json); jsonNodeToSanskritObject(objectMapperSupplier, version, result, jsonNode); } catch (IOException e) { throw new SanskritException(e); } }
JsonUtils { public static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result) throws SanskritException { try { JsonNode jsonNode = objectMapperSupplier.getObjectMapper(version).readTree(json); jsonNodeToSanskritObject(objectMapperSupplier, version, result, jsonNode); } catch (IOException e) { throw new SanskritException(e); } } }
JsonUtils { public static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result) throws SanskritException { try { JsonNode jsonNode = objectMapperSupplier.getObjectMapper(version).readTree(json); jsonNodeToSanskritObject(objectMapperSupplier, version, result, jsonNode); } catch (IOException e) { throw new SanskritException(e); } }  }
JsonUtils { public static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result) throws SanskritException { try { JsonNode jsonNode = objectMapperSupplier.getObjectMapper(version).readTree(json); jsonNodeToSanskritObject(objectMapperSupplier, version, result, jsonNode); } catch (IOException e) { throw new SanskritException(e); } }  static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result); }
JsonUtils { public static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result) throws SanskritException { try { JsonNode jsonNode = objectMapperSupplier.getObjectMapper(version).readTree(json); jsonNodeToSanskritObject(objectMapperSupplier, version, result, jsonNode); } catch (IOException e) { throw new SanskritException(e); } }  static void parse(ObjectMapperSupplier objectMapperSupplier, String version, String json, MutableSanskritObject result);  }