Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Enfoirer/Text2GraphRAG
/ load_json
Function
load_json
nano_graphrag/_utils.py:195–199 ·
view source on GitHub ↗
(file_name)
Source
from the content-addressed store, hash-verified
193
194
195
def
load_json(file_name):
196
if
not os.path.exists(file_name):
197
return
None
198
with
open(file_name, encoding=
"utf-8"
)
as
f:
199
return
json.load(f)
200
201
202
# it's dirty to type, so it's a good way to have fun
Callers
1
__post_init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected