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 | b4e186cf113f77a51ae3387ceecc17b022a4b499 (patch) | |
tree | f5a9b0e817993f78085d25a62b66f6751a679f42 | |
parent | 452dd381500d5486ca782447a89f54fc19c0e384 (diff) | |
download | cpython-b4e186cf113f77a51ae3387ceecc17b022a4b499.zip cpython-b4e186cf113f77a51ae3387ceecc17b022a4b499.tar.gz cpython-b4e186cf113f77a51ae3387ceecc17b022a4b499.tar.bz2 |
Documenting that json.load may raise a ValueError.
Issue #18680: JSONDecoder should document that it raises a ValueError
for malformed data
-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 6e1a9c3..caee953 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -348,6 +348,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) |