MCPcopy
hub / github.com/hacs/integration / safe_json_dumps

Function safe_json_dumps

tests/common.py:141–147  ·  view source on GitHub ↗
(data: dict | list)

Source from the content-addressed store, hash-verified

139
140
141def safe_json_dumps(data: dict | list) -> str:
142 return json_func.dumps(
143 data,
144 indent=4,
145 sort_keys=True,
146 cls=ExtendedJSONEncoder,
147 )
148
149
150def recursive_remove_key(data: dict[str, Any], to_remove: Iterable[str]) -> dict[str, Any]:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…