8000 gh-87506: Document that `json.load*()` can raise `UnicodeDecodeError` by srinivasreddy · Pull Request #127355 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-87506: Document that json.load*() can raise UnicodeDecodeError #127355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review comments
  • Loading branch information
srinivasreddy committed Jan 8, 2025
commit 725e15518da6b001e3b20975c7fb1c3e78c0fcef
4 changes: 2 additions & 2 deletions Doc/library/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ Basic Usage

The other arguments have the same meaning as in :func:`load`.

If the data is not a valid JSON document, a :exc:`JSONDecodeError` will be
raised.
If the data being deserialized is not a valid JSON document, a
:exc:`JSONDecodeError` will be raised.

.. versionchanged:: 3.6
*s* can now be of type :class:`bytes` or :class:`bytearray`. The
Expand Down
Loading
0