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 | b435799520bcf14432490aeb7526d696986d8285 (patch) | |
tree | bbee6efe60ddd960bd0c40227b89ebde54db56a3 /Doc | |
parent | 60fb9719a195d55264b3129203790a6b43988442 (diff) | |
download | cpython-b435799520bcf14432490aeb7526d696986d8285.zip cpython-b435799520bcf14432490aeb7526d696986d8285.tar.gz cpython-b435799520bcf14432490aeb7526d696986d8285.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 877ccd0..3b832f6 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -256,6 +256,8 @@ Basic Usage The other arguments have the same meaning as in :func:`load`, except *encoding* which is ignored and deprecated. + If the data being deserialized is not a valid JSON document, a + :exc:`ValueError` will be raised. Encoders and Decoders --------------------- |