|
12 | 12 | -------------- |
13 | 13 |
|
14 | 14 | `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 |
16 | 16 | `ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_, |
17 | 17 | is a lightweight data interchange format inspired by |
18 | 18 | `JavaScript <https://en.wikipedia.org/wiki/JavaScript>`_ object literal syntax |
@@ -615,7 +615,7 @@ Exceptions |
615 | 615 | Standard Compliance and Interoperability |
616 | 616 | ---------------------------------------- |
617 | 617 |
|
618 | | -The JSON format is specified by :rfc:`7159` and by |
| 618 | +The JSON format is specified by :rfc:`8259` and by |
619 | 619 | `ECMA-404 <https://ecma-international.org/publications-and-standards/standards/ecma-404/>`_. |
620 | 620 | This section details this module's level of compliance with the RFC. |
621 | 621 | For simplicity, :class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and |
@@ -704,9 +704,9 @@ Top-level Non-Object, Non-Array Values |
704 | 704 | The old version of JSON specified by the obsolete :rfc:`4627` required that |
705 | 705 | the top-level value of a JSON text must be either a JSON object or array |
706 | 706 | (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. |
710 | 710 |
|
711 | 711 | Regardless, for maximum interoperability, you may wish to voluntarily adhere |
712 | 712 | to the restriction yourself. |
@@ -833,8 +833,8 @@ Command-line options |
833 | 833 |
|
834 | 834 | .. rubric:: Footnotes |
835 | 835 |
|
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>`_, |
838 | 838 | JSON permits literal U+2028 (LINE SEPARATOR) and |
839 | 839 | U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript |
840 | 840 | (as of ECMAScript Edition 5.1) does not. |
0 commit comments