Skip to content

Commit da6e655

Browse files
committed
gh-137533:make a example in json.loads()
1 parent 1a71527 commit da6e655

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/json.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ Basic Usage
367367
.. versionchanged:: 3.9
368368
The keyword argument *encoding* has been removed.
369369

370+
.. note::
371+
372+
The decoder will convert all JSON objects' keys into string as
373+
the key of dictionaries,for example,
374+
``json.loads('{"spam":"foo"}')`` returns ``{'spam':'foo'}``
375+
370376
Encoders and Decoders
371377
---------------------
372378

0 commit comments

Comments
 (0)