title: Remove extra white spaces from the json
body: <p>In Java I have a json string and I want to remove the extra white spaces from it. I don't want to remove the space from the character in keys and values.</p>
  
  <p>Actual JSON string </p>
  
  <pre><code>{ "Error" : "Invalid HTTP Method" , "ErrorCode" : "405" , "ErrorDesc" : "Method Not Allowed" } 
  </code></pre>
  
  <p>Required JSON</p>
  
  <pre><code>{"Error":"Invalid HTTP Method","ErrorCode":"405","ErrorDesc":"Method Not Allowed"}
  </code></pre>