We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f761e74 + 5d31ddb commit 1b7c37eCopy full SHA for 1b7c37e
src/requests/models.py
@@ -945,7 +945,9 @@ def text(self):
945
return content
946
947
def json(self, **kwargs):
948
- r"""Returns the json-encoded content of a response, if any.
+ 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.
951
952
:param \*\*kwargs: Optional arguments that ``json.loads`` takes.
953
:raises requests.exceptions.JSONDecodeError: If the response body does not
0 commit comments