summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorDaniel Himmelstein <daniel.himmelstein@gmail.com>2019-12-04 06:15:19 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-12-04 06:15:19 (GMT)
commit03257949bc02a4afdf2ea1eb07a73f8128129579 (patch)
treeceaf3976e56c1258505bd8b0a13221b99c69f34f /Misc/NEWS.d
parenteb48a451e3844185b9a8751c9badffbddc89689d (diff)
downloadcpython-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')
-rw-r--r--Misc/NEWS.d/next/Library/2018-02-22-11-24-33.bpo-29636.ogGRE2.rst5
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``.