summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
Commit message (Collapse)AuthorAgeFilesLines
* doc: Use super() in subclassed JSONEncoder examples (GH-115565)Jan Max Meyer2024-02-281-2/+2
| | | | Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation.
* Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)Adam Turner2023-10-031-7/+7
|
* gh-107544: Add docs about `json.dumps(..., default=)` (#108259)Nikita Sobolev2023-09-071-1/+12
|
* gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)Serhiy Storchaka2023-07-291-3/+3
|
* gh-106892: Use roles :data: and :const: for referencing module variables ↵Serhiy Storchaka2023-07-211-3/+3
| | | | (GH-106894)
* Revert "GH-96145: Add AttrDict to JSON module for use with object_hook ↵Łukasz Langa2023-06-261-43/+0
| | | | | (#96146)" (#105948) This reverts commit 1f0eafa844bf5a380603d55e8d4b42d8c2a3439d.
* Fix indentation in `json.AttrDict` REPL example (#104930)Alex Waygood2023-05-251-8/+8
| | | This is causing the docs to be rendered incorrectly.
* Misc updates to Whatsnew 3.12 (#104912)Raymond Hettinger2023-05-251-2/+2
|
* gh-96959: Update more HTTP links (GH-97536)Serhiy Storchaka2022-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.
* gh-96512: Update int_max_str docs to say 3.11 (#96942)Gregory P. Smith2022-09-191-1/+1
| | | | It was unknown if it'd be before 3.11.0 when creating the original changes. It's in 3.11rc2, so 3.11 it is.
* gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499)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. 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#). Much of that text wound up in the Issue. Backports PRs already exist. See the issue for links.
* GH-96145: Add AttrDict to JSON module for use with object_hook (#96146)Raymond Hettinger2022-08-231-0/+43
|
* gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS ↵Serhiy Storchaka2022-08-041-2/+2
| | | | | | | | | | (GH-95527) 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.
* gh-92417: `json` docs: `dict` is ordered on all supported Python versions ↵Alex Waygood2022-05-081-7/+0
| | | | (GH-92422)
* bpo-46157: fix typo in docs (GH-30237)Kumar Aditya2021-12-231-2/+2
|
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵James Gerity2021-12-071-2/+2
| | | | (GH-29943)
* bpo-45441: Update some moved URLs in documentation (GH-28861)1809092021-10-121-3/+3
|
* 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
|