diff options
author | Felix Crux <felixc@felixcrux.com> | 2013-08-12 17:39:51 -0400 |
---|---|---|
committer | Felix Crux <felixc@felixcrux.com> | 2013-08-12 17:39:51 -0400 |
commit | d48826a89090c22f453520db2d6afbee131f95ea (patch) | |
tree | adb7fa896c8aa827ff390378717dc676fc03ee73 /Doc/library/json.rst | |
parent | 504298daac88778b2395e6d9fbb09064514cbbf7 (diff) | |
download | cpython-d48826a89090c22f453520db2d6afbee131f95ea.tar.gz |
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/library/json.rst')
-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 3b832f684c..5d97ee88fc 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) |