title: Reverse JSON pretty print with Jackson
body: <p>I know I can reformat JSON objects in Java (using Jackson, GSON, etc.) to go from</p>
  
  <pre><code>{"a":"b", "c":"d"}
  </code></pre>
  
  <p>to</p>
  
  <pre><code>{
    "a": "b",
    "c": "d"
  }
  </code></pre>
  
  <p>But how do I go convert a JSON object back to one-object-per-line format, i.e how do I get from</p>
  
  <pre><code>{
    "a": "b",
    "c": "d"
  }
  </code></pre>
  
  <p>to</p>
  
  <pre><code>{"a":"b", "c":"d"}
  </code></pre>
  
  <p>in Java using an existing pretty-printer?</p>