MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / write_json

Method write_json

codewiki/mcp/workspace.py:67–71  ·  view source on GitHub ↗

Write *data* as pretty-printed JSON and return the file path.

(self, name: str, data: Any)

Source from the content-addressed store, hash-verified

65
66 # -- writers ----------------------------------------------------------
67
68 def write_json(self, name: str, data: Any) -> Path:
69 """Write *data* as pretty-printed JSON and return the file path."""
70 p = self.root / name
71 p.write_text(json.dumps(data, indent=2, ensure_ascii=False), encoding="utf-8")
72 return p
73
74 def write_component_source(

Callers 3

handle_analyze_repoFunction · 0.95
handle_save_module_treeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected