@Test public void normalizeJson_DoubleQuotted() { String value = JsonNormalizer.normalizeJson("{\"bre\":\"sss\",\"arr\":[\"1112\",\"abc\"]}"); assertEquals("{\"bre\":\"sss\",\"arr\":[\"1112\",\"abc\"]}", value); }
public static String normalizeJson(String json) throws IllegalArgumentException { JsonNode df = null; try { df = singleQuotedMapper.readValue(json, JsonNode.class); } catch (IOException e) { throw new IllegalArgumentException(e); } return df.toString(); }
JsonNormalizer { public static String normalizeJson(String json) throws IllegalArgumentException { JsonNode df = null; try { df = singleQuotedMapper.readValue(json, JsonNode.class); } catch (IOException e) { throw new IllegalArgumentException(e); } return df.toString(); } }
JsonNormalizer { public static String normalizeJson(String json) throws IllegalArgumentException { JsonNode df = null; try { df = singleQuotedMapper.readValue(json, JsonNode.class); } catch (IOException e) { throw new IllegalArgumentException(e); } return df.toString(); } private  JsonNormalizer(); }
JsonNormalizer { public static String normalizeJson(String json) throws IllegalArgumentException { JsonNode df = null; try { df = singleQuotedMapper.readValue(json, JsonNode.class); } catch (IOException e) { throw new IllegalArgumentException(e); } return df.toString(); } private  JsonNormalizer(); static String normalizeJson(String json); }
JsonNormalizer { public static String normalizeJson(String json) throws IllegalArgumentException { JsonNode df = null; try { df = singleQuotedMapper.readValue(json, JsonNode.class); } catch (IOException e) { throw new IllegalArgumentException(e); } return df.toString(); } private  JsonNormalizer(); static String normalizeJson(String json);  }