Skip to content

Commit 1b7c37e

Browse files
authored
Merge pull request #6529 from anupam-arista/patch-1
2 parents f761e74 + 5d31ddb commit 1b7c37e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/requests/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,9 @@ def text(self):
945945
return content
946946

947947
def json(self, **kwargs):
948-
r"""Returns the json-encoded content of a response, if any.
948+
r"""Decodes the JSON response body (if any) as a Python object.
949+
950+
This may return a dictionary, list, etc. depending on what is in the response.
949951
950952
:param \*\*kwargs: Optional arguments that ``json.loads`` takes.
951953
:raises requests.exceptions.JSONDecodeError: If the response body does not

0 commit comments

Comments
 (0)