Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Enfoirer/Text2GraphRAG
/ write_json
Function
write_json
nano_graphrag/_utils.py:190–192 ·
view source on GitHub ↗
(json_obj, file_name)
Source
from the content-addressed store, hash-verified
188
189
190
def
write_json(json_obj, file_name):
191
with
open(file_name,
"w"
, encoding=
"utf-8"
)
as
f:
192
json.dump(json_obj, f, indent=2, ensure_ascii=False)
193
194
195
def
load_json(file_name):
Callers
1
index_done_callback
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected