title: How to trim whitespaces from JSON output in Node.js?
body: <p>On Node.js using Express, I am outputting JSON with a simple <code>response.send(myObject)</code> It's working fine, but the response has a lot of white spaces indentations. Removing them reduces the size by half. Is there a quick/proper way to do this? I tried using <code>JSON.stringify</code> and it works great, but that turns the response type to <code>text/html</code></p>