Skip to content

Commit

Permalink
pythongh-87506: Document that json.load*() can raise UnicodeDecodeErr…
Browse files Browse the repository at this point in the history
…or (python#127355)

Co-authored-by: Erlend Aasland <[email protected]>
  • Loading branch information
srinivasreddy and erlend-aasland authored Jan 8, 2025
1 parent 65ae3d5 commit 15372d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ Basic Usage
:raises JSONDecodeError:
When the data being deserialized is not a valid JSON document.

:raises UnicodeDecodeError:
When the data being deserialized does not contain
UTF-8, UTF-16 or UTF-32 encoded data.

.. versionchanged:: 3.1

* Added the optional *object_pairs_hook* parameter.
Expand Down

0 comments on commit 15372d0

Please sign in to comment.