MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / json

Method json

src/anthropic/_response.py:482–485  ·  view source on GitHub ↗

Read and decode the JSON response content.

(self)

Source from the content-addressed store, hash-verified

480 return self.http_response.text
481
482 async def json(self) -> object:
483 """Read and decode the JSON response content."""
484 await self.read()
485 return self.http_response.json()
486
487 async def close(self) -> None:
488 """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