Skip to content
Merged
Changes from all commits
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
4 changes: 3 additions & 1 deletion src/requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,9 @@ def text(self):
return content

def json(self, **kwargs):
r"""Returns the json-encoded content of a response, if any.
r"""Decodes the JSON response body (if any) as a Python object.

This may return a dictionary, list, etc. depending on what is in the response.

:param \*\*kwargs: Optional arguments that ``json.loads`` takes.
:raises requests.exceptions.JSONDecodeError: If the response body does not
Expand Down
Loading