MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / load_json

Function load_json

tools/_utils.py:157–161  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

155
156
157def load_json(file_name):
158 if not os.path.exists(file_name):
159 return None
160 with open(file_name, encoding="utf-8") as f:
161 return json.load(f)
162
163
164# it's dirty to type, so it's a good way to have fun

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected