### Question:
JSONUtil { public static String indentJSON(final String jsonIn) throws JSONParseException{ JsonFactory fac = new JsonFactory(); try{ JsonParser parser = fac.createJsonParser(new StringReader(jsonIn)); JsonNode node = null; try{ node = jsonObjMapper.readTree(parser); } catch(JsonParseException ex){ throw new JSONParseException(ex.getMessage()); } StringWriter out = new StringWriter(); JsonGenerator gen = fac.createJsonGenerator(out); DefaultPrettyPrinter pp = new DefaultPrettyPrinter(); pp.indentArraysWith(new DefaultPrettyPrinter.Lf2SpacesIndenter()); gen.setPrettyPrinter(pp); jsonObjMapper.writeTree(gen, node); gen.flush(); gen.close(); return out.toString(); } catch(IOException ex){ LOG.log(Level.SEVERE, null, ex); } return jsonIn; } private  JSONUtil(); static String indentJSON(final String jsonIn);  }### Answer:
@Test public void testIndentJSON() throws Exception { System.out.println("indentJSON"); String jsonIn = FileUtil.getContentAsString( new File("src/test/resources/issue_191/one-line.json"), Charsets.UTF_8); String expResult = "1.015786164055542498"; String resultJson = JSONUtil.indentJSON(jsonIn); Gson gson = new GsonBuilder().create(); Issue191Bean indentedObj = gson.fromJson(resultJson, Issue191Bean.class); String result = indentedObj.performance; assertEquals(expResult, result); }