When running my node.js application locally, I get nicely formatted JSON output with line breaks and spaces, like this:
{
"foo": "bar",
"asdf": "qwerty"
}
But when I run the same code in iisnode on Azure, I get this:
{"foo":"bar","asdf":"qwerty"}
Not that it makes any functional difference, and the latter one even saves some extra bytes, but it would be nice to know where the difference comes from.
Here is the code:
exports.test = function(req, res){
var result = { foo : 'bar', asdf : 'qwerty'};
res.send(result);
}