Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) | Miss Islington (bot) | 2022-09-25 | 3 | -3/+3 |
| | | | | | (cherry picked from commit db39050396a104c73d0da473a2f00a62f9dfdfaa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵ | Miss Islington (bot) | 2021-12-07 | 2 | -3/+3 |
| | | | | | | | (GH-29943) (cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com> | ||||
* | bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) ↵ | Miss Islington (bot) | 2021-11-06 | 1 | -7/+14 |
| | | | | | | | | | | | | | | (GH-29445) 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> (cherry picked from commit 815dad42d53fc40a6dc057e067f4a8a885c3b858) Co-authored-by: Chris Wesseling <chris.wesseling@protonmail.com> | ||||
* | bpo-39828: Fix json.tool to catch BrokenPipeError (GH-18779) | Dong-hee Na | 2020-03-10 | 1 | -1/+4 |
| | |||||
* | bpo-39377: json: Remove the encoding option. (GH-18075) | Inada Naoki | 2020-01-20 | 1 | -11/+0 |
| | |||||
* | bpo-29636: json.tool: Add document for indentation options. (GH-17482) | Daniel Himmelstein | 2019-12-07 | 1 | -1/+2 |
| | | | And updated test to use subprocess.run | ||||
* | bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472) | wim glenn | 2019-12-06 | 1 | -0/+3 |
| | |||||
* | bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460) | Inada Naoki | 2019-12-04 | 1 | -2/+4 |
| | |||||
* | bpo-29636: Add --(no-)indent arguments to json.tool (GH-345) | Daniel Himmelstein | 2019-12-04 | 1 | -7/+23 |
| | |||||
* | json.tool: use stdin and stdout in default cmdlne arguments (GH-11992) | Hervé Beraud | 2019-05-14 | 1 | -4/+6 |
| | | | | Argparse can handle default value as stdin and stdout for parameters as file type (infile, outfile). | ||||
* | bpo-36793: Remove unneeded __str__ definitions. (GH-13081) | Serhiy Storchaka | 2019-05-06 | 1 | -2/+2 |
| | | | | Classes that define __str__ the same as __repr__ can just inherit it from object. | ||||
* | bpo-33461: emit DeprecationWarning when json.loads(encoding=...) is used ↵ | Matthias Bussonnier | 2019-04-09 | 1 | -2/+11 |
| | | | | (GH-6762) | ||||
* | bpo-31553: add --json-lines option to json.tool (#10051) | HongWeipeng | 2018-11-07 | 1 | -5/+11 |
| | | | | | | | | | | * add jsonlines option to json.tool * code review * fix:avoid read infile after it close * improve doc in whatsnew 3.8 | ||||
* | bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131) | INADA Naoki | 2018-07-06 | 1 | -1/+1 |
| | | | Stop using key=lambda. This behavior is same to C version encoder. | ||||
* | bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048) | Serhiy Storchaka | 2018-05-22 | 1 | -1/+1 |
| | |||||
* | bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001) | INADA Naoki | 2018-04-03 | 2 | -17/+7 |
| | |||||
* | bpo-32360: Remove OrderedDict usage from json.tool (GH-5315) | INADA Naoki | 2018-01-25 | 1 | -6/+1 |
| | | | `object_pairs_hook=OrderedDict` idiom is deprecated. | ||||
* | bpo-24641: Improved error message for JSON unserializible keys. (#4364) | Serhiy Storchaka | 2017-11-25 | 2 | -6/+8 |
| | | | | | Also updated an example for default() in the module docstring. Removed quotes around type name in other error messages. | ||||
* | Fix trivial typo in json module docstring (GH-2274) | dong-jy | 2017-06-20 | 1 | -1/+1 |
| | |||||
* | bpo-29762: More use "raise from None". (#569) | Serhiy Storchaka | 2017-04-05 | 2 | -2/+3 |
| | | | This hides unwanted implementation details from tracebacks. | ||||
* | Fixed the documentation of parse_constant argument in json.load(). | Serhiy Storchaka | 2016-11-12 | 1 | -1/+1 |
|\ | | | | | | | parse_constant doesn't get called on 'null', 'true', 'false' since 3.1/2.7. | ||||
| * | Fixed the documentation of parse_constant argument in json.load(). | Serhiy Storchaka | 2016-11-12 | 1 | -1/+1 |
| | | | | | | | | parse_constant doesn't get called on 'null', 'true', 'false' since 3.1/2.7. | ||||
* | | Issue #28541: Improve test coverage for encoding detection in json library. | Serhiy Storchaka | 2016-10-30 | 1 | -1/+2 |
| | | | | | | | | Original patch by Eric Appelt. | ||||
* | | Issue #17909: Accept binary input in json.loads | Nick Coghlan | 2016-09-10 | 1 | -8/+42 |
| | | | | | | | | | | | | | | json.loads (and hence json.load) now support binary input encoded as UTF-8, UTF-16 or UTF-32. Patch by Serhiy Storchaka. | ||||
* | | Issue #4945: Improved the documenting of boolean arguments in the json module. | Serhiy Storchaka | 2016-06-30 | 1 | -2/+2 |
|\ \ | |/ | | | | | Based on patch by Gabriel Genellina. | ||||
| * | Issue #4945: Improved the documenting of boolean arguments in the json module. | Serhiy Storchaka | 2016-06-30 | 1 | -2/+2 |
| | | | | | | | | Based on patch by Gabriel Genellina. | ||||
* | | Issue #18726: All optional parameters of the dump(), dumps(), | Serhiy Storchaka | 2016-06-21 | 3 | -6/+6 |
| | | | | | | | | | | load() and loads() functions and JSONEncoder and JSONDecoder class constructors in the json module are now keyword-only. | ||||
* | | Issue #26623: TypeError message for JSON unserializible object now contains | Serhiy Storchaka | 2016-04-10 | 1 | -1/+2 |
|/ | | | | | object's type name, not object's representation. Based on patch by Mahmoud Lababidi. | ||||
* | Issue #26719: More efficient formatting of ints and floats in json. | Serhiy Storchaka | 2016-04-10 | 1 | -10/+10 |
| | |||||
* | Issue #24540: merger from 3.4 | Ned Deily | 2015-07-05 | 1 | -1/+1 |
|\ | |||||
| * | Issue #24540: fix typo in json.dumps docstring | Ned Deily | 2015-07-05 | 1 | -1/+1 |
| | | |||||
* | | Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError. | Serhiy Storchaka | 2015-01-26 | 2 | -48/+45 |
| | | |||||
* | | Issue #23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the ↵ | Antoine Pitrou | 2015-01-11 | 1 | -1/+8 |
| | | | | | | | | default case of ``ensure_ascii=True``. Patch by Naoki Inada. | ||||
* | | Issue #21650: Add an `--sort-keys` option to json.tool CLI. | Berker Peksag | 2014-11-10 | 1 | -2/+10 |
| | | |||||
* | | improve the command-line interface of json.tool (closes #21000) | Benjamin Peterson | 2014-03-22 | 1 | -12/+15 |
|/ | | | | A patch from Berker Peksag. | ||||
* | Remove mentions of Python 2.x and being externally maintained from | Gregory P. Smith | 2013-12-08 | 1 | -5/+2 |
|\ | | | | | | | | | the bundled json module. Replace that with a mention of it being a version of the externally maintained simplejson module. | ||||
| * | Remove mentions of Python 2.x and being externally maintained from | Gregory P. Smith | 2013-12-08 | 1 | -5/+2 |
| | | | | | | | | | | the bundled json module. Replace that with a mention of it being a version of the externally maintained simplejson module. | ||||
* | | Issue #11489: JSON decoder now accepts lone surrogates. | Serhiy Storchaka | 2013-11-26 | 1 | -18/+17 |
|\ \ | |/ | |||||
| * | Issue #11489: JSON decoder now accepts lone surrogates. | Serhiy Storchaka | 2013-11-26 | 1 | -18/+17 |
| | | |||||
* | | #18958: Improve error message for json.load(s) while passing a string that ↵ | Ezio Melotti | 2013-10-20 | 1 | -0/+2 |
| | | | | | | | | starts with a UTF-8 BOM. | ||||
* | | #19307: Improve error message for json.load(s) while passing objects of the ↵ | Ezio Melotti | 2013-10-20 | 1 | -0/+3 |
| | | | | | | | | wrong type. | ||||
* | | Close #18264: int- and float-derived enums now converted to int or float. | Ethan Furman | 2013-08-10 | 1 | -8/+19 |
| | | |||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 3 | -4/+4 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 3 | -4/+4 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Merge #16057: Clarify why the base method default is called in custom encoders. | R David Murray | 2013-03-18 | 1 | -0/+1 |
|\ \ | |/ | | | | | Original patch by Kushal Das. | ||||
| * | Merge #16057: Clarify why the base method default is called in custom encoders. | R David Murray | 2013-03-18 | 1 | -0/+1 |
| |\ | | | | | | | | | | Original patch by Kushal Das. | ||||
| | * | #16057: Clarify why the base method default is called in custom encoders. | R David Murray | 2013-03-18 | 1 | -0/+1 |
| | | | | | | | | | | | | Original patch by Kushal Das. | ||||
* | | | #17368: merge with 3.3. | Ezio Melotti | 2013-03-12 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | #17368: merge with 3.2. | Ezio Melotti | 2013-03-12 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | #17368: Fix an off-by-one error in the Python JSON decoder that caused a ↵ | Ezio Melotti | 2013-03-12 | 1 | -1/+1 |
| | | | | | | | | | | | | failure while decoding empty object literals when object_pairs_hook was specified. |