diff options
author | Daniel Himmelstein <daniel.himmelstein@gmail.com> | 2019-12-04 06:15:19 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-12-04 06:15:19 (GMT) |
commit | 03257949bc02a4afdf2ea1eb07a73f8128129579 (patch) | |
tree | ceaf3976e56c1258505bd8b0a13221b99c69f34f /Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst | |
parent | eb48a451e3844185b9a8751c9badffbddc89689d (diff) | |
download | cpython-03257949bc02a4afdf2ea1eb07a73f8128129579.zip cpython-03257949bc02a4afdf2ea1eb07a73f8128129579.tar.gz cpython-03257949bc02a4afdf2ea1eb07a73f8128129579.tar.bz2 |
bpo-29636: Add --(no-)indent arguments to json.tool (GH-345)
Diffstat (limited to 'Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst b/Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst new file mode 100644 index 0000000..9f96ed2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst @@ -0,0 +1,5 @@ +Add whitespace options for formatting JSON with the ``json.tool`` CLI. The +following mutually exclusive options are now supported: ``--indent`` for +setting the indent level in spaces; ``--tab`` for indenting with tabs; +``--no-indent`` for suppressing newlines; and ``--compact`` for suppressing +all whitespace. The default behavior remains the same as ``--indent=4``. |