Skip to content

Commit cdfb8bc

Browse files
gh-87506: Amend json.loads() post PR #127355 (#128609)
1 parent 15372d0 commit cdfb8bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Doc/library/json.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,11 @@ Basic Usage
347347

348348
.. function:: loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
349349

350-
Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray`
350+
Identical to :func:`load`, but instead of a file-like object,
351+
deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray`
351352
instance containing a JSON document) to a Python object using this
352353
:ref:`conversion table <json-to-py-table>`.
353354

354-
The other arguments have the same meaning as in :func:`load`.
355-
356-
If the data being deserialized is not a valid JSON document, a
357-
:exc:`JSONDecodeError` will be raised.
358-
359355
.. versionchanged:: 3.6
360356
*s* can now be of type :class:`bytes` or :class:`bytearray`. The
361357
input encoding should be UTF-8, UTF-16 or UTF-32.

0 commit comments

Comments
 (0)