Skip to content

Commit 34d204b

Browse files
committed
python#4783: Merge with 3.1.
2 parents d211231 + 60adf95 commit 34d204b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/json.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ Basic Usage
158158
Serialize *obj* to a JSON formatted :class:`str`. The arguments have the
159159
same meaning as in :func:`dump`.
160160

161+
.. note::
162+
163+
Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol so
164+
trying to serialize more objects with repeated calls to :func:`dump` and
165+
the same *fp* will result in an invalid JSON file.
161166

162167
.. function:: load(fp, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
163168

0 commit comments

Comments
 (0)