Skip to content

Commit c3df37c

Browse files
authored
gh-141510: Document frozendict support in json (gh-155929)
1 parent 1ad63cc commit c3df37c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/json.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ Encoders and Decoders
486486
+----------------------------------------+---------------+
487487
| Python | JSON |
488488
+========================================+===============+
489-
| dict | object |
489+
| dict, frozendict | object |
490490
+----------------------------------------+---------------+
491491
| list, tuple | array |
492492
+----------------------------------------+---------------+
@@ -504,6 +504,9 @@ Encoders and Decoders
504504
.. versionchanged:: 3.4
505505
Added support for int- and float-derived Enum classes.
506506

507+
.. versionchanged:: 3.15
508+
Added support for :class:`frozendict`.
509+
507510
To extend this to recognize other objects, subclass and implement a
508511
:meth:`~JSONEncoder.default` method with another method that returns a serializable object
509512
for ``o`` if possible, otherwise it should call the superclass implementation

0 commit comments

Comments
 (0)