JSONFormatter { public static String formatJSON(String source) { try { return FORMATTER.format(source); } catch (Exception e) { return ""; } }  static String formatJSON(String source);  }
@Test public void testJSONFormatter() { System.out.println(JSONFormatter.formatJSON("{\"key\":\"value\",\"object\": {\"name\":\"value\",\"age\":\"1\"}}")); System.out.println(JSONFormatter.FORMATTER.getClass()); }