title: JSON String tidy/formatter for Java
body: <p>I have a valid JSON String that I want to tidy/format such that each property/value pair is on its own line, etc. (it currently is on one line with no spaces/line breaks).</p>
  <p>I am using the Apache Sling <code>JSONObject</code> to model my JSON Object and turn it into a String, so if the Sling <code>JSONObject</code> can be set to output a tidy string (which I do not think it can) that would work too.</p>
  <p>If I need a 3rd party lib I would prefer one with as few dependencies as possibles (such as Jackson which only requires the std JDK libs).</p>