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

Method json

src/openai/_response.py:351–354  ·  src/openai/_response.py::APIResponse.json

Read and decode the JSON response content.

(self)

Source from the content-addressed store, hash-verified

349 return self.http_response.text
350
351 def json(self) -> object:
352 class="st">""class="st">"Read and decode the JSON response content."class="st">""
353 self.read()
354 return self.http_response.json()
355
356 def close(self) -> None:
357 class="st">"""Close the response and release the connection.

Callers 15

_parseMethod · 0.45
jsonMethod · 0.45
model_dump_jsonMethod · 0.45
model_jsonFunction · 0.45
get_tokenFunction · 0.45
test_raw_responseMethod · 0.45
test_follow_redirectsMethod · 0.45
test_raw_responseMethod · 0.45
test_follow_redirectsMethod · 0.45

Calls 1

readMethod · 0.95