Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--------------

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

The JSON format is specified by :rfc:`7159` and by
The JSON format is specified by :rfc:`8259` and by
`ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_.
This section details this module's level of compliance with the RFC.
For simplicity, :class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and
Expand Down Expand Up @@ -850,8 +850,8 @@ Command-line options

.. rubric:: Footnotes

.. [#rfc-errata] As noted in `the errata for RFC 7159
<https://www.rfc-editor.org/errata_search.php?rfc=7159>`_,
.. [#rfc-errata] As noted in `the errata for RFC 8259
<https://www.rfc-editor.org/errata_search.php?rfc=8259>`_,
Comment on lines +853 to +854
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the errata for RFC 7159 wasn't really solved in 8259, but another errata (with different wording) also exists for RFC 8259.

The footnote is referenced here:

`JSON (JavaScript Object Notation) <https://json.org>`_, specified by
:rfc:`7159` (which obsoletes :rfc:`4627`) and by
`ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_,
is a lightweight data interchange format inspired by
`JavaScript <https://en.wikipedia.org/wiki/JavaScript>`_ object literal syntax
(although it is not a strict subset of JavaScript [#rfc-errata]_ ).

Is it really relevant for the Python documentation? Should we remove this sentence entirely?

JSON permits literal U+2028 (LINE SEPARATOR) and
U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript
(as of ECMAScript Edition 5.1) does not.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Document support for :rfc:`8259` in :mod:`json` module, which obsoletes
:rfc:`7159`.
Loading