MCPcopy Create free account
hub / github.com/Tong89/smartNode / _json

Function _json

tests/test_api.py:69–71  ·  view source on GitHub ↗

从 Response 中解析 JSON 字典。

(resp)

Source from the content-addressed store, hash-verified

67
68
69def _json(resp) -> dict:
70 """从 Response 中解析 JSON 字典。"""
71 return json.loads(resp.data.decode("utf-8"))
72
73
74def _post_json(client, url: str, payload: dict):

Calls

no outgoing calls

Tested by

no test coverage detected