summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2025-01-08 08:36:44 (GMT)
committerGitHub <noreply@github.com>2025-01-08 08:36:44 (GMT)
commitcdfb8bc93a4d8c06d2404ba2d243937ba209438c (patch)
tree3e186a527e173e18f76231e3a718646c1085b272 /Doc/library/json.rst
parent15372d0112ac7fbbbe313725dd87d5a45af2f6d3 (diff)
downloadcpython-cdfb8bc93a4d8c06d2404ba2d243937ba209438c.zip
cpython-cdfb8bc93a4d8c06d2404ba2d243937ba209438c.tar.gz
cpython-cdfb8bc93a4d8c06d2404ba2d243937ba209438c.tar.bz2
gh-87506: Amend json.loads() post PR #127355 (#128609)
Diffstat (limited to 'Doc/library/json.rst')
-rw-r--r--Doc/library/json.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 41a09b4..4e7046d 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -347,15 +347,11 @@ Basic Usage
.. function:: loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
- Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray`
+ Identical to :func:`load`, but instead of a file-like object,
+ deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray`
instance containing a JSON document) to a Python object using this
:ref:`conversion table <json-to-py-table>`.
- The other arguments have the same meaning as in :func:`load`.
-
- If the data being deserialized is not a valid JSON document, a
- :exc:`JSONDecodeError` will be raised.
-
.. versionchanged:: 3.6
*s* can now be of type :class:`bytes` or :class:`bytearray`. The
input encoding should be UTF-8, UTF-16 or UTF-32.