MCPcopy
hub / github.com/redis/redis-py / json

Method json

redis/http/http_client.py:37–38  ·  redis/http/http_client.py::HttpResponse.json
(self)

Source from the content-addressed store, hash-verified

35 return self.content.decode(enc, errors=class="st">"replace")
36
37 def json(self) -> Any:
38 return json.loads(self.text(encoding=self._get_encoding()))
39
40 def _get_encoding(self) -> str:
41 class="cm"># Try to infer encoding from headers; default to utf-8

Callers 15

search_vss.pyFile · 0.45
dt_json.pyFile · 0.45
query_geo.pyFile · 0.45
home_json.pyFile · 0.45
query_agg.pyFile · 0.45
query_em.pyFile · 0.45
query_ft.pyFile · 0.45
geo_index.pyFile · 0.45
query_range.pyFile · 0.45
query_combined.pyFile · 0.45

Calls 2

textMethod · 0.95
_get_encodingMethod · 0.95

Tested by 15

test_json_setbinarykeyFunction · 0.36
test_jsongetFunction · 0.36
test_json_get_jsetFunction · 0.36
test_json_set_fphaFunction · 0.36
test_json_set_fpha_enumFunction · 0.36
test_json_mergeFunction · 0.36