summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-15 04:40:37 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-15 04:40:37 (GMT)
commit5ee8cb1201e2c926f8c9c8cd6a79c054746f57b6 (patch)
treea216054d6aa9b085a3ac99bd5663bd7f708c1d97 /Doc
parentfd9103a5da6ab53b6889707da4307d75c798b27b (diff)
parent34d204bc85074a96754e4cd1f23f1c148d0d9aaa (diff)
downloadcpython-5ee8cb1201e2c926f8c9c8cd6a79c054746f57b6.zip
cpython-5ee8cb1201e2c926f8c9c8cd6a79c054746f57b6.tar.gz
cpython-5ee8cb1201e2c926f8c9c8cd6a79c054746f57b6.tar.bz2
#4783: Merge with 3.2.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/json.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 9064409..0db86be 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -158,6 +158,11 @@ Basic Usage
Serialize *obj* to a JSON formatted :class:`str`. The arguments have the
same meaning as in :func:`dump`.
+ .. note::
+
+ Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol so
+ trying to serialize more objects with repeated calls to :func:`dump` and
+ the same *fp* will result in an invalid JSON file.
.. function:: load(fp, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)