MCPcopy
hub / github.com/openai/openai-python / json

Method json

src/openai/_response.py:458–461  ·  view source on GitHub ↗

Read and decode the JSON response content.

(self)

Source from the content-addressed store, hash-verified

456 return self.http_response.text
457
458 async def json(self) -> object:
459 """Read and decode the JSON response content."""
460 await self.read()
461 return self.http_response.json()
462
463 async def close(self) -> None:
464 """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