MCPcopy Index your code
hub / github.com/pyscript/pyscript / json

Method json

core/src/stdlib/pyscript/fetch.py:76–82  ·  view source on GitHub ↗

Parse response body as JSON and return Python objects. Returns native Python dicts, lists, strings, numbers, etc.

(self)

Source from the content-addressed store, hash-verified

74 return as_bytearray(buffer)
75
76 async def json(self):
77 """
78 Parse response body as JSON and return Python objects.
79
80 Returns native Python dicts, lists, strings, numbers, etc.
81 """
82 return json.loads(await self.text())
83
84 async def text(self):
85 """

Callers

nothing calls this directly

Calls 1

textMethod · 0.95

Tested by

no test coverage detected