title: How to remove formatting in the json message generated by fasterxml jackson
body: <p>We are using the following API to convert our object &amp; it's value to JSON format string. Now one of our requirement says, the generated string should not be formatted using TAB or extra spaces. I do not want to remove the whitespaces that is part of the actually content but should remove only the whitespaces &amp; tabs in the overall json message formatting. Is there any option/api using which this can this be achieved ?</p>
  
  <pre><code>com.fasterxml.jackson.databind.ObjectMapper mapper = new ObjectMapper();
  String jsonMessage = mapper.writeValueAsString(myObject);
  </code></pre>