From 9b938e98ffd65b565df078ddebb415c51e88c6bc Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Mon, 17 Aug 2026 12:58:12 +0900 Subject: [PATCH] gh-141510: Document frozendict support in json --- Doc/library/json.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 383ccad9df041b..5e8c452a5ab9a1 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -486,7 +486,7 @@ Encoders and Decoders +----------------------------------------+---------------+ | Python | JSON | +========================================+===============+ - | dict | object | + | dict, frozendict | object | +----------------------------------------+---------------+ | list, tuple | array | +----------------------------------------+---------------+ @@ -504,6 +504,9 @@ Encoders and Decoders .. versionchanged:: 3.4 Added support for int- and float-derived Enum classes. + .. versionchanged:: 3.15 + Added support for :class:`frozendict`. + To extend this to recognize other objects, subclass and implement a :meth:`~JSONEncoder.default` method with another method that returns a serializable object for ``o`` if possible, otherwise it should call the superclass implementation