Skip to content

Commit 0e2da51

Browse files
kovanclaude
andcommitted
gh-136216: Update JSON RFC references from 7159 to 8259
RFC 8259 obsoleted RFC 7159 in December 2017. Update the json module documentation to reference the current RFC. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e2c9bd commit 0e2da51

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/library/json.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--------------
1313

1414
`JSON (JavaScript Object Notation) <https://json.org>`_, specified by
15-
:rfc:`7159` (which obsoletes :rfc:`4627`) and by
15+
:rfc:`8259` (which obsoletes :rfc:`7159`) and by
1616
`ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_,
1717
is a lightweight data interchange format inspired by
1818
`JavaScript <https://en.wikipedia.org/wiki/JavaScript>`_ object literal syntax
@@ -615,7 +615,7 @@ Exceptions
615615
Standard Compliance and Interoperability
616616
----------------------------------------
617617

618-
The JSON format is specified by :rfc:`7159` and by
618+
The JSON format is specified by :rfc:`8259` and by
619619
`ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_.
620620
This section details this module's level of compliance with the RFC.
621621
For simplicity, :class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and
@@ -704,9 +704,9 @@ Top-level Non-Object, Non-Array Values
704704
The old version of JSON specified by the obsolete :rfc:`4627` required that
705705
the top-level value of a JSON text must be either a JSON object or array
706706
(Python :class:`dict` or :class:`list`), and could not be a JSON null,
707-
boolean, number, or string value. :rfc:`7159` removed that restriction, and
708-
this module does not and has never implemented that restriction in either its
709-
serializer or its deserializer.
707+
boolean, number, or string value. :rfc:`7159` (now :rfc:`8259`) removed that
708+
restriction, and this module does not and has never implemented that restriction
709+
in either its serializer or its deserializer.
710710

711711
Regardless, for maximum interoperability, you may wish to voluntarily adhere
712712
to the restriction yourself.
@@ -833,8 +833,8 @@ Command-line options
833833

834834
.. rubric:: Footnotes
835835

836-
.. [#rfc-errata] As noted in `the errata for RFC 7159
837-
<https://www.rfc-editor.org/errata_search.php?rfc=7159>`_,
836+
.. [#rfc-errata] As noted in `the errata for RFC 8259
837+
<https://www.rfc-editor.org/errata_search.php?rfc=8259>`_,
838838
JSON permits literal U+2028 (LINE SEPARATOR) and
839839
U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript
840840
(as of ECMAScript Edition 5.1) does not.

0 commit comments

Comments
 (0)