@Test public void empty() throws Exception { JsonSanskritChangeVisitor visitor = new JsonSanskritChangeVisitor(objectMapperSupplier); assertEquals("{}", visitor.getJson(null)); }
public String getJson(String version) throws SanskritException { try { return objectMapperSupplier.getObjectMapper(version).writeValueAsString(objectNode); } catch (JsonProcessingException e) { throw new SanskritException(e); } }
JsonSanskritChangeVisitor implements SanskritChangeVisitor { public String getJson(String version) throws SanskritException { try { return objectMapperSupplier.getObjectMapper(version).writeValueAsString(objectNode); } catch (JsonProcessingException e) { throw new SanskritException(e); } } }
JsonSanskritChangeVisitor implements SanskritChangeVisitor { public String getJson(String version) throws SanskritException { try { return objectMapperSupplier.getObjectMapper(version).writeValueAsString(objectNode); } catch (JsonProcessingException e) { throw new SanskritException(e); } } JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier);  JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier, ObjectNode objectNode); }
JsonSanskritChangeVisitor implements SanskritChangeVisitor { public String getJson(String version) throws SanskritException { try { return objectMapperSupplier.getObjectMapper(version).writeValueAsString(objectNode); } catch (JsonProcessingException e) { throw new SanskritException(e); } } JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier);  JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier, ObjectNode objectNode); String getJson(String version); @Override void setString(String key, String value); @Override void setLong(String key, long value); @Override void setObject(String key, SanskritObject value); @Override void removeKey(String key); @Override void setExternal(String key, T value, String version); }
JsonSanskritChangeVisitor implements SanskritChangeVisitor { public String getJson(String version) throws SanskritException { try { return objectMapperSupplier.getObjectMapper(version).writeValueAsString(objectNode); } catch (JsonProcessingException e) { throw new SanskritException(e); } } JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier);  JsonSanskritChangeVisitor(ObjectMapperSupplier objectMapperSupplier, ObjectNode objectNode); String getJson(String version); @Override void setString(String key, String value); @Override void setLong(String key, long value); @Override void setObject(String key, SanskritObject value); @Override void removeKey(String key); @Override void setExternal(String key, T value, String version);  }