MCPcopy
hub / github.com/mitmproxy/mitmproxy / get_json

Function get_json

release/release.py:27–33  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

25
26
27def get_json(url: str) -> dict:
28 resp = get(url)
29 body = resp.read()
30 try:
31 return json.loads(body)
32 except Exception as e:
33 raise RuntimeError(f"{resp.status=} {body=}") from e
34
35
36if __name__ == "__main__":

Callers 1

release.pyFile · 0.70

Calls 3

loadsMethod · 0.80
getFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…