MCPcopy
hub / github.com/aio-libs/aiohttp / json

Method json

aiohttp/web_request.py:717–720  ·  view source on GitHub ↗

Return BODY as JSON.

(self, *, loads: JSONDecoder = DEFAULT_JSON_DECODER)

Source from the content-addressed store, hash-verified

715 return bytes_body.decode(encoding)
716
717 async def json(self, *, loads: JSONDecoder = DEFAULT_JSON_DECODER) -> Any:
718 """Return BODY as JSON."""
719 body = await self.text()
720 return loads(body)
721
722 async def multipart(self) -> MultipartReader:
723 """Return async iterator to process BODY as multipart."""

Callers 15

handlerFunction · 0.45
test_send_recv_jsonFunction · 0.45
test_bug3380Function · 0.45
websocket_handlerFunction · 0.45
test_POST_DATAFunction · 0.45
test_GET_DEFLATEFunction · 0.45
test_GET_DEFLATE_no_bodyFunction · 0.45
test_POST_DATA_DEFLATEFunction · 0.45
handlerFunction · 0.45

Calls 1

textMethod · 0.95

Tested by 15

handlerFunction · 0.36
test_send_recv_jsonFunction · 0.36
test_bug3380Function · 0.36
websocket_handlerFunction · 0.36
test_POST_DATAFunction · 0.36
test_GET_DEFLATEFunction · 0.36
test_GET_DEFLATE_no_bodyFunction · 0.36
test_POST_DATA_DEFLATEFunction · 0.36
handlerFunction · 0.36