diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 033e3fc41e8..200fa147401 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -339,8 +339,8 @@ Encoders and Decoders (e.g. :class:`float`). *parse_constant*, if specified, will be called with one of the following - strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``, ``'null'``, ``'true'``, - ``'false'``. This can be used to raise an exception if invalid JSON numbers + strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. + This can be used to raise an exception if invalid JSON numbers are encountered. If *strict* is false (``True`` is the default), then control characters diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index 94397aa4e94..b8d5e6cff8c 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -328,7 +328,7 @@ def loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, for JSON integers (e.g. float). ``parse_constant``, if specified, will be called with one of the - following strings: -Infinity, Infinity, NaN, null, true, false. + following strings: -Infinity, Infinity, NaN. This can be used to raise an exception if invalid JSON numbers are encountered.