MCPcopy Index your code
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
18 @staticmethod
19 def save_json(data: Any, filepath: str) -> None:
20 """Save data as JSON to file."""
21 with open(filepath, 'w', encoding='utf-8') as f:
22 json.dump(data, f, indent=4, ensure_ascii=False)
23
24 @staticmethod
25 def load_json(filepath: str) -> Optional[Dict[str, Any]]:

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