Commit 5a19430b authored by Felix Crux's avatar Felix Crux

Documenting that json.load may raise a ValueError.

Issue #18680: JSONDecoder should document that it raises a ValueError
  for malformed data
parent 0a5b529b
...@@ -256,6 +256,8 @@ Basic Usage ...@@ -256,6 +256,8 @@ Basic Usage
The other arguments have the same meaning as in :func:`load`, except The other arguments have the same meaning as in :func:`load`, except
*encoding* which is ignored and deprecated. *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 Encoders and Decoders
--------------------- ---------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment