Skip to content

Commit a4b8240

Browse files
committed
gh-137533:move notes under json.dumps() to module-level documents
1 parent f17de69 commit a4b8240

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/json.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ See :ref:`json-commandline` for detailed documentation.
147147
default. Order is only lost if the underlying containers are unordered.
148148

149149
.. note::
150-
Per :rfc:`7159`, JSON objects' keys must be strings.
151-
This module's encoder converts Python dictionary's keys to strings,
152-
and its decoder produces Python dictionaries with string keys.
150+
:rfc:`7159` requires that keys in key/value pairs of JSON are always of the
151+
type :class:`str`. When a dictionary is converted into JSON, all the keys
152+
of the dictionary arecoerced to strings.When a JSON object is converted into
153+
dictionaries,all the keys of the dictionary are strings.
153154

154155
Basic Usage
155156
-----------

0 commit comments

Comments
 (0)