summaryrefslogtreecommitdiffstats
path: root/Lib/json/tool.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45644: Make json.tool read infile before writing to outfile (GH-29273)Chris Wesseling2021-11-061-7/+14
| | | | | | | | | so that $ python -m json.tool foo.json foo.json doesn't result in an empty foo.json. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-39828: Fix json.tool to catch BrokenPipeError (GH-18779)Dong-hee Na2020-03-101-1/+4
|
* bpo-29636: json.tool: Add document for indentation options. (GH-17482)Daniel Himmelstein2019-12-071-1/+2
| | | And updated test to use subprocess.run
* bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472)wim glenn2019-12-061-0/+3
|
* bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)Inada Naoki2019-12-041-2/+4
|
* bpo-29636: Add --(no-)indent arguments to json.tool (GH-345)Daniel Himmelstein2019-12-041-7/+23
|
* json.tool: use stdin and stdout in default cmdlne arguments (GH-11992)Hervé Beraud2019-05-141-4/+6
| | | | Argparse can handle default value as stdin and stdout for parameters as file type (infile, outfile).
* bpo-31553: add --json-lines option to json.tool (#10051)HongWeipeng2018-11-071-5/+11
| | | | | | | | | | * add jsonlines option to json.tool * code review * fix:avoid read infile after it close * improve doc in whatsnew 3.8
* bpo-32360: Remove OrderedDict usage from json.tool (GH-5315)INADA Naoki2018-01-251-6/+1
| | | `object_pairs_hook=OrderedDict` idiom is deprecated.
* Issue #21650: Add an `--sort-keys` option to json.tool CLI.Berker Peksag2014-11-101-2/+10
|
* improve the command-line interface of json.tool (closes #21000)Benjamin Peterson2014-03-221-12/+15
| | | | A patch from Berker Peksag.
* Issue #17225: JSON decoder now counts columns in the first line startingSerhiy Storchaka2013-02-211-1/+1
|\ | | | | | | with 1, as in other lines.
| * Issue #17225: JSON decoder now counts columns in the first line startingSerhiy Storchaka2013-02-211-1/+1
| | | | | | | | with 1, as in other lines.
| * #16476: Fix json.tool to avoid including trailing whitespace.Ezio Melotti2012-11-291-1/+2
|/
* #16549: Make json.tool work again on Python 3 and add tests. Initial patch ↵Ezio Melotti2012-11-291-9/+11
| | | | by Berker Peksag and Serhiy Storchaka.
* Issue #5067: improve some json error messages.Antoine Pitrou2012-06-281-1/+1
| | | | Patch by Serhiy Storchaka.
* port simplejson upgrade from the trunk #4136Benjamin Peterson2009-05-021-3/+3
| | | | | | json also now works only with unicode strings Patch by Antoine Pitrou; updated by me
* Merged revisions 62734,62736,62748,62769 via svnmerge fromChristian Heimes2008-05-081-0/+37
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62734 | brett.cannon | 2008-05-05 22:21:38 +0200 (Mon, 05 May 2008) | 5 lines Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob Ippolito. Closes issue #2750. ........ r62736 | georg.brandl | 2008-05-05 22:53:39 +0200 (Mon, 05 May 2008) | 2 lines Fix JSON module docs. ........ r62748 | benjamin.peterson | 2008-05-06 04:51:10 +0200 (Tue, 06 May 2008) | 2 lines PEP 8 nits in json package ........ r62769 | christian.heimes | 2008-05-06 18:18:41 +0200 (Tue, 06 May 2008) | 2 lines Intern static string Use float constructors instead of magic code for float constants ........