Skip to content

Commit 3d0b304

Browse files
committed
gh-137533:nuked notes in json.dumps() and json.loads()
1 parent da6e655 commit 3d0b304

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Doc/library/json.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,6 @@ Basic Usage
259259
table <py-to-json-table>`. The arguments have the same meaning as in
260260
:func:`dump`.
261261

262-
.. note::
263-
264-
The encoder will convert all non-string keys in dictionaries into string,
265-
if a dictionary is converted into JSON and then back into a dictionary,
266-
the dictionary may not equal the original one.
267-
That is, ``loads(dumps(x)) != x`` if x has non-string keys.
268-
269262
.. function:: load(fp, *, cls=None, object_hook=None, parse_float=None, \
270263
parse_int=None, parse_constant=None, \
271264
object_pairs_hook=None, **kw)
@@ -367,11 +360,6 @@ Basic Usage
367360
.. versionchanged:: 3.9
368361
The keyword argument *encoding* has been removed.
369362

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'}``
375363

376364
Encoders and Decoders
377365
---------------------

0 commit comments

Comments
 (0)