title: Jackson JSON skip spaces at serializing
body: <p>I want to minimize my JSON being produced by the java Jackson (de)serializer. It is being read only in java.</p>
  
  <p>I know, I can use <code>mapper.enable(SerializationFeature.INDENT_OUTPUT)</code> to enable or disable debug indentation, making my JSON more human readable. But can I also (safely) avoid spaces, to strip my JSON?</p>
  
  <p>E.g. in most 'human readable format it is:</p>
  
  <pre><code>{
    "a": "b",
    "c": "d"
  }
  </code></pre>
  
  <p>Without indentation it is:</p>
  
  <pre><code>{ "a": "b", "c": "d" }
  </code></pre>
  
  <p>But I do want to achieve is:</p>
  
  <pre><code>{"a":"b","c":"d"}
  </code></pre>
  
  <p>How can I strip these spaces and is it safe at all? Thanks!</p>