Skip to content

Commit 1161ad0

Browse files
committed
gh-137533:fix:warp line 396 to 6 lines
1 parent dcfd3f3 commit 1161ad0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/library/json.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,12 @@ Basic Usage
366366

367367
.. note::
368368

369-
As mandated by RFC 8259,the key in key-value pairs in JSON is always of type of :class:`str`,so the key of the dictionary that is got by serializing a JSON object is always a string.
370-
Example:``json.loads('{"42":"value"}')`` will get a dictionary ``{'42':'value'}``
369+
As mandated by RFC 8259, keys in JSON key-value pairs are always of
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'}``.
371375

372376
Encoders and Decoders
373377
---------------------

0 commit comments

Comments
 (0)