This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bsolomon1124
Recipients bsolomon1124, rhettinger
Date 2019-08-29.19:52:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567108326.92.0.195943011967.issue37982@roundup.psfhosted.org>
In-reply-to
Content
Since, as you point out, json.tool is made for convenience, I see the reverse of pretty-printing (minifying) being just as convenient:

$ cat > expanded.json <<EOF
> {
>     "foo": "bar",
>     "json": "obj"
> }
> EOF
$ ./python.exe -m json.tool --minify expanded.json minf.json
$ cat minf.json 
{"foo":"bar","json":"obj"}
History
Date User Action Args
2019-08-29 19:52:06bsolomon1124setrecipients: + bsolomon1124, rhettinger
2019-08-29 19:52:06bsolomon1124setmessageid: <1567108326.92.0.195943011967.issue37982@roundup.psfhosted.org>
2019-08-29 19:52:06bsolomon1124linkissue37982 messages
2019-08-29 19:52:06bsolomon1124create