summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
diff options
context:
space:
mode:
authorEvan Allrich <eallrich@gmail.com>2018-08-11 07:34:02 (GMT)
committerINADA Naoki <methane@users.noreply.github.com>2018-08-11 07:34:02 (GMT)
commit9e840848510d20e644a19c723b803877377d3765 (patch)
tree973adac51fbbc1b5cffe1c2151b44422e19e4060 /Doc/library/json.rst
parentdb6075ab3aa44f69c13c4a169806d08596d25003 (diff)
downloadcpython-9e840848510d20e644a19c723b803877377d3765.zip
cpython-9e840848510d20e644a19c723b803877377d3765.tar.gz
cpython-9e840848510d20e644a19c723b803877377d3765.tar.bz2
bpo-34379: Doc: Move note for json.dump (GH-8730)
Diffstat (limited to 'Doc/library/json.rst')
-rw-r--r--Doc/library/json.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index d65fb3f..8ce493d 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -188,6 +188,11 @@ Basic Usage
.. versionchanged:: 3.6
All optional parameters are now :ref:`keyword-only <keyword-only_parameter>`.
+ .. note::
+
+ Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol,
+ so trying to serialize multiple objects with repeated calls to
+ :func:`dump` using the same *fp* will result in an invalid JSON file.
.. function:: dumps(obj, *, skipkeys=False, ensure_ascii=True, \
check_circular=True, allow_nan=True, cls=None, \
@@ -200,12 +205,6 @@ Basic Usage
.. note::
- Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol,
- so trying to serialize multiple objects with repeated calls to
- :func:`dump` using the same *fp* will result in an invalid JSON file.
-
- .. note::
-
Keys in key/value pairs of JSON are always of the type :class:`str`. When
a dictionary is converted into JSON, all the keys of the dictionary are
coerced to strings. As a result of this, if a dictionary is converted