Brad Solomon <brad.solomon.1...@gmail.com> added the comment:
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"} ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37982> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com