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

Method json

src/opencode_ai/_response.py:339–342  ·  view source on GitHub ↗

Read and decode the JSON response content.

(self)

Source from the content-addressed store, hash-verified

337 return self.http_response.text
338
339 def json(self) -> object:
340 """Read and decode the JSON response content."""
341 self.read()
342 return self.http_response.json()
343
344 def close(self) -> None:
345 """Close the response and release the connection.

Callers 15

_parseMethod · 0.45
jsonMethod · 0.45
model_dump_jsonMethod · 0.45
model_jsonFunction · 0.45
test_raw_responseMethod · 0.45
test_follow_redirectsMethod · 0.45
test_raw_responseMethod · 0.45
test_follow_redirectsMethod · 0.45
test_basicFunction · 0.45
test_data_missing_eventFunction · 0.45

Calls 1

readMethod · 0.95