Skip to content

Commit 7ff9a73

Browse files
committed
'What's New' entry
1 parent b079384 commit 7ff9a73

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,17 @@ inspect
788788
for :func:`~inspect.getdoc`.
789789
(Contributed by Serhiy Storchaka in :gh:`132686`.)
790790

791+
json
792+
----
793+
794+
* Add the *array_hook* parameter to :func:`~json.load` and
795+
:func:`~json.loads` functions:
796+
Allow a callback for JSON literal array types to customize Python lists in
797+
the resulting decoded object. Passing combined :class:`frozendict` to
798+
*object_pairs_hook* param and :class:`tuple` to ``array_hook`` will yield a
799+
deeply nested immutable Python structure representing the JSON data.
800+
(Contributed by Joao S. O. Bueno in :gh:`146440`)
801+
791802

792803
locale
793804
------

0 commit comments

Comments
 (0)