diff options
author | Felix Crux <felixc@felixcrux.com> | 2013-08-12 21:39:51 (GMT) |
---|---|---|
committer | Felix Crux <felixc@felixcrux.com> | 2013-08-12 21:39:51 (GMT) |
commit | 654f003a13c1340f5297eb5edc82720b9fe524aa (patch) | |
tree | 0e7d497641f6b7510d585407132a0fb43bb62ab0 /Doc | |
parent | b435799520bcf14432490aeb7526d696986d8285 (diff) | |
download | cpython-654f003a13c1340f5297eb5edc82720b9fe524aa.zip cpython-654f003a13c1340f5297eb5edc82720b9fe524aa.tar.gz cpython-654f003a13c1340f5297eb5edc82720b9fe524aa.tar.bz2 |
Documenting that json.load may raise a ValueError.
Issue #18680: JSONDecoder should document that it raises a ValueError
for malformed data
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/json.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 3b832f6..5d97ee8 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -329,6 +329,8 @@ Encoders and Decoders those with character codes in the 0-31 range, including ``'\t'`` (tab), ``'\n'``, ``'\r'`` and ``'\0'``. + If the data being deserialized is not a valid JSON document, a + :exc:`ValueError` will be raised. .. method:: decode(s) |