Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Formatting and missing parameter to JSONDecoder
  • Loading branch information
jsbueno committed Mar 26, 2026
commit 6e482971694de2ff6678cb26558cae31d3b7bdaa
6 changes: 3 additions & 3 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Basic Usage
of service attacks.

.. versionchanged:: 3.15
Comment thread
jsbueno marked this conversation as resolved.
Outdated
* Added the optional *array_hook* parameter.
Added the optional *array_hook* parameter.

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

Expand All @@ -379,7 +379,7 @@ Basic Usage
Encoders and Decoders
---------------------

.. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None)
.. class:: JSONDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None, array_hook=None)

Simple JSON decoder.

Expand Down Expand Up @@ -429,7 +429,7 @@ Encoders and Decoders
*array_hook* will be used instead of the :class:`list`. This feature can be
used to implement custom decoders.

.. versionchanged:: 3.15
.. versionchanged:: next
Added support for *array_hook*.

*parse_float* is an optional function that will be called with the string of
Expand Down