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

Method save_json

codewiki/src/utils.py:19–22  ·  view source on GitHub ↗

Save data as JSON to file.

(data: Any, filepath: str)

Source from the content-addressed store, hash-verified

17 os.makedirs(path, exist_ok=True)
18
19 @staticmethod
20 def save_json(data: Any, filepath: str) -> None:
21 """Save data as JSON to file."""
22 with open(filepath, "w", encoding="utf-8") as f:
23 json.dump(data, f, indent=4, ensure_ascii=False)
24
25 @staticmethod

Callers 8

save_cache_indexMethod · 0.80
save_job_statusesMethod · 0.80
run_module_agentMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected