@Test public void formatCurrentTokenTree() throws JsonParseException, IOException { String element1 = normalizeJson("{bre: 'sss', arr: ['1112', 'abc']}"); JsonParser jsonParser = jsonFactory.createParser(element1); jsonParser.nextToken(); String formattedJsonToken = jsonFormatter.formatCurrentTokenTree(jsonParser); assertEquals(element1, formattedJsonToken); }
public String formatCurrentTokenTree(JsonParser jsonParser) throws IOException { TreeNode node = jsonParser.readValueAsTree(); if (node instanceof NullNode) { return null; } return node.toString(); }
JsonFormatter { public String formatCurrentTokenTree(JsonParser jsonParser) throws IOException { TreeNode node = jsonParser.readValueAsTree(); if (node instanceof NullNode) { return null; } return node.toString(); } }
JsonFormatter { public String formatCurrentTokenTree(JsonParser jsonParser) throws IOException { TreeNode node = jsonParser.readValueAsTree(); if (node instanceof NullNode) { return null; } return node.toString(); }  }
JsonFormatter { public String formatCurrentTokenTree(JsonParser jsonParser) throws IOException { TreeNode node = jsonParser.readValueAsTree(); if (node instanceof NullNode) { return null; } return node.toString(); }  String formatCurrentTokenTree(JsonParser jsonParser); String formatObject(Object object); @Autowired void setJsonFactory(JsonFactory jsonFactory); }
JsonFormatter { public String formatCurrentTokenTree(JsonParser jsonParser) throws IOException { TreeNode node = jsonParser.readValueAsTree(); if (node instanceof NullNode) { return null; } return node.toString(); }  String formatCurrentTokenTree(JsonParser jsonParser); String formatObject(Object object); @Autowired void setJsonFactory(JsonFactory jsonFactory);  }