### Question:
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);  }### Answer:
@Test public void normalizeJson_DoubleQuotted() { String value = JsonNormalizer.normalizeJson("{\"bre\":\"sss\",\"arr\":[\"1112\",\"abc\"]}"); assertEquals("{\"bre\":\"sss\",\"arr\":[\"1112\",\"abc\"]}", value); }
@Test public void normalizeJson_SingleQuottedWithSpaces() { String value = JsonNormalizer.normalizeJson("{bre:'sss'\n, arr:['1112','abc']}\n"); assertEquals("{\"bre\":\"sss\",\"arr\":[\"1112\",\"abc\"]}", value); }