summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-96959: Update more HTTP links (GH-97536)Miss Islington (bot)2022-09-271-1/+1
| | | | | | | Use HTTPS for documents which are available by both HTTP and HTTPS links, but there is no redirection from HTTP to HTTPS or vice versa. (cherry picked from commit dd53b79de0ea98af6a11481217a961daef4e9774) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96501)Gregory P. Smith2022-09-021-0/+11
| | | | | | | | | | | | | | | | | Integer to and from text conversions via CPython's bignum `int` type is not safe against denial of service attacks due to malicious input. Very large input strings with hundred thousands of digits can consume several CPU seconds. This PR comes fresh from a pile of work done in our private PSRT security response team repo. This backports https://github.com/python/cpython/pull/96499 aka 511ca9452033ef95bc7d7fc404b8161068226002 Signed-off-by: Christian Heimes [Red Hat] <christian@python.org> Tons-of-polishing-up-by: Gregory P. Smith [Google] <greg@krypto.org> Reviews via the private PSRT repo via many others (see the NEWS entry in the PR). <!-- gh-issue-number: gh-95778 --> * Issue: gh-95778 <!-- /gh-issue-number --> I wrote up [a one pager for the release managers](https://docs.google.com/document/d/1KjuF_aXlzPUxTK4BMgezGJ2Pn7uevfX7g0_mvgHlL7Y/edit#).
* [3.10] gh-91838: Use HTTPS links in docs for resources which redirect to ↵Serhiy Storchaka2022-08-041-2/+2
| | | | | | | | | | | | HTTPS (GH-95527) (GH-95644) If an HTTP link is redirected to a same looking HTTPS link, the latter can be used directly without changes in readability and behavior. It protects from a men-in-the-middle attack. This change does not affect Python examples.. (cherry picked from commit f79547a429d5c90af83a0da821e082cba20d4712) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] gh-92417: `json` docs: `dict` is ordered on all supported Python ↵Miss Islington (bot)2022-05-081-7/+0
| | | | | | | | | | versions (GH-92422) (GH-92465) (cherry picked from commit bc098cfdb756f207d8fa84793e8ad91a2f263efb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵Miss Islington (bot)2021-12-071-2/+2
| | | | | | | (GH-29943) (cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* bpo-45441: Update some moved URLs in documentation (GH-28861)Miss Islington (bot)2021-10-121-3/+3
| | | | | (cherry picked from commit b37dc9b3bc9575adc039c6093c643b7ae5e917e1) Co-authored-by: 180909 <wjh180909@gmail.com>
* Doc: Improve library/json document. (GH-24390)Adorilson Bezerra2021-03-021-7/+6
|
* Doc: add a missing period (GH-21819)Mathieu Dupuy2020-08-201-1/+1
|
* bpo-39377: json: Update doc about the encoding option. (GH-18076)Inada Naoki2020-01-221-5/+4
| | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-29636: json.tool: Add document for indentation options. (GH-17482)Daniel Himmelstein2019-12-071-0/+6
| | | And updated test to use subprocess.run
* bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472)wim glenn2019-12-061-0/+6
|
* Correct minor grammar mistake (GH-15404)Andre Delfino2019-08-231-1/+1
|
* bpo-30550: Clarify JSON ordering guarantees (GH-15397)Raymond Hettinger2019-08-221-0/+12
|
* bpo-33461: emit DeprecationWarning when json.loads(encoding=...) is used ↵Matthias Bussonnier2019-04-091-2/+5
| | | | (GH-6762)
* bpo-31553: add --json-lines option to json.tool (#10051)HongWeipeng2018-11-071-0/+6
| | | | | | | | | | * add jsonlines option to json.tool * code review * fix:avoid read infile after it close * improve doc in whatsnew 3.8
* bpo-35167: Specify program for gzip and json.tool command line options. ↵Serhiy Storchaka2018-11-051-0/+3
| | | | (GH-10332)
* bpo-34379: Doc: Move note for json.dump (GH-8730)Evan Allrich2018-08-111-6/+5
|
* bpo-17909: Document that json.load can accept a binary IO (GH-7366)Anthony Sottile2018-06-071-3/+7
|
* Improve highlighting of some code blocks. (GH-6401)Serhiy Storchaka2018-04-081-8/+8
|
* bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001)INADA Naoki2018-04-031-8/+4
|
* Make `json.dumps()` example to be PEP-8 compliant. (GH-3472)Sergey Fedoseev2017-09-091-1/+1
|
* Fix the signature of JSONDecodeError (no end parameter). (#1827)Serhiy Storchaka2017-05-271-1/+1
| | | Unlikely to the simplejson module, json.JSONDecodeError doesn't accept the end argument.
* Issues #29189: Merge indentation fixes from 3.5Martin Panter2017-01-241-11/+11
|\
| * Issue #29189: Fix indentation in RST markupMartin Panter2017-01-241-11/+11
| |
* | Issue #29281: Fill-in a missing versionchanged entryRaymond Hettinger2017-01-201-0/+5
| |
* | Issue #28763: Use double hyphens (rendered as en-dashes) in numerical rangesSerhiy Storchaka2016-11-261-1/+1
|\ \ | |/ | | | | in the documentation.
| * Issue #28763: Use double hyphens (rendered as en-dashes) in numerical rangesSerhiy Storchaka2016-11-261-1/+1
| | | | | | | | in the documentation.
* | Fixed the documentation of parse_constant argument in json.load().Serhiy Storchaka2016-11-121-2/+2
|\ \ | |/ | | | | 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 Storchaka2016-11-121-2/+2
| | | | | | | | parse_constant doesn't get called on 'null', 'true', 'false' since 3.1/2.7.
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+3
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+3
| |
* | Issue #17909: Accept binary input in json.loadsNick Coghlan2016-09-101-2/+3
| | | | | | | | | | | | | | 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 Storchaka2016-06-301-22/+26
|\ \ | |/ | | | | Based on patch by Gabriel Genellina.
| * Issue #4945: Improved the documenting of boolean arguments in the json module.Serhiy Storchaka2016-06-301-22/+26
| | | | | | | | Based on patch by Gabriel Genellina.
* | Merge with 3.5Terry Jan Reedy2016-06-231-1/+7
|\ \ | |/
| * Issue #27304: Source code links for sub-packages in the same file.Terry Jan Reedy2016-06-231-1/+7
| | | | | | | | Patch by Yoni Lavi
* | Issue #18726: All optional parameters of the dump(), dumps(),Serhiy Storchaka2016-06-211-6/+18
|/ | | | | load() and loads() functions and JSONEncoder and JSONDecoder class constructors in the json module are now keyword-only.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+5
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #26736: Used HTTPS for external links in the documentation if possible.Serhiy Storchaka2016-05-071-1/+1
|
* Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-1/+1
| | | | to SilentGhost for the patch.
* Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError.Serhiy Storchaka2015-01-261-3/+36
| |
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-1/+1
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-1/+1
| |
* | Issue #21514: The documentation of the json module now refers to new JSON RFCSerhiy Storchaka2014-11-271-39/+72
|\ \ | |/ | | | | 7159 instead of obsoleted RFC 4627.
| * Issue #21514: The documentation of the json module now refers to new JSON RFCSerhiy Storchaka2014-11-271-39/+72
| | | | | | | | 7159 instead of obsoleted RFC 4627.
* | Issue #21650: Add an `--sort-keys` option to json.tool CLI.Berker Peksag2014-11-101-0/+11
| |
* | merge with 3.4Georg Brandl2014-10-281-2/+2
|\ \ | |/
| * Using "-m module" is easier to read and understand than "-mmodule".Georg Brandl2014-10-281-2/+2
| |