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.
Merge pull request #2 from dey-sys/master

Eliminate odd newlines from JSON output