MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / json

Method json

src/opencode_ai/_response.py:439–442  ·  view source on GitHub ↗

Read and decode the JSON response content.

(self)

Source from the content-addressed store, hash-verified

437 return self.http_response.text
438
439 async def json(self) -> object:
440 """Read and decode the JSON response content."""
441 await self.read()
442 return self.http_response.json()
443
444 async def close(self) -> None:
445 """Close the response and release the connection.

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
jsonMethod · 0.45

Tested by

no test coverage detected