We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56dfcfd commit 40d0cd1Copy full SHA for 40d0cd1
Doc/library/json.rst
@@ -370,8 +370,10 @@ Basic Usage
370
type :class:`str`. Therefore, dictionary keys obtained by
371
deserializing JSON objects will always be strings.
372
For Example,
373
- ``json.loads('{"42":"value"}')`` returns the dictionary
374
- ``{'42': 'value'}``.
+ ``json.loads('{"42":"spam"}')`` returns the dictionary
+ ``{'42': 'spam'}`,but ``json.loads('{42:"spam"}')``
375
+ will raise a exception,because it is not a correct
376
+ JSON text
377
378
Encoders and Decoders
379
---------------------
0 commit comments