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

Function _read_json

src/anthropic/lib/middleware/_fallbacks.py:1454–1458  ·  view source on GitHub ↗
(response: httpx.Response)

Source from the content-addressed store, hash-verified

1452
1453
1454def _read_json(response: httpx.Response) -> Any:
1455 try:
1456 return json.loads(response.read())
1457 except Exception:
1458 return None
1459
1460
1461async def _read_json_async(response: httpx.Response) -> Any:

Callers 1

_spliced_framesMethod · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected