Eliminate odd newlines from JSON output

For programs that read JSON from stdin
it's easier to read JSON string that fits
to one line than JSON that is spread
across multiple lines.