Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/starlette
/ json
Method
json
starlette/requests.py:262–266 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
260
return
self._body
261
262
async
def
json(self) -> Any:
263
if
not hasattr(self,
"_json"
):
# pragma: no branch
264
body = await self.body()
265
self._json = json.loads(body)
266
return
self._json
267
268
async
def
_get_form(
269
self,
Callers
15
app
Function · 0.95
test_request_url
Function · 0.80
test_request_query_params
Function · 0.80
test_request_headers
Function · 0.80
test_request_body
Function · 0.80
test_request_stream
Function · 0.80
test_request_form_urlencoded
Function · 0.80
test_request_form_context_manager
Function · 0.80
test_request_body_then_stream
Function · 0.80
test_request_stream_then_body
Function · 0.80
test_request_json
Function · 0.80
test_request_without_setting_receive
Function · 0.80
Calls
1
body
Method · 0.95
Tested by
15
app
Function · 0.76
test_request_url
Function · 0.64
test_request_query_params
Function · 0.64
test_request_headers
Function · 0.64
test_request_body
Function · 0.64
test_request_stream
Function · 0.64
test_request_form_urlencoded
Function · 0.64
test_request_form_context_manager
Function · 0.64
test_request_body_then_stream
Function · 0.64
test_request_stream_then_body
Function · 0.64
test_request_json
Function · 0.64
test_request_without_setting_receive
Function · 0.64