[issue31553] Extend json.tool to handle jsonlines (with a flag)

STINNER Victor report at bugs.python.org
Wed Oct 24 18:23:52 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> The output is not a valid JSON format, and is not a valid JSON Lines format. What you are going to do with it?

It looks useful to me to read a nicely indented JSON in the terminal (without specifying an output file). It's more readable that compact JSON on a single line.

But should we add an option to write the output on a single line? It would be the opposite of the tool description:
"A simple command line interface for json module to validate and *pretty-print* JSON objects."

----------
nosy: +vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31553>
_______________________________________


More information about the Python-bugs-list mailing list