Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/debjitpaul/refiner
/ read_json
Function
read_json
data_preprocessing/utils.py:49–51 ·
view source on GitHub ↗
(filepath)
Source
from the content-addressed store, hash-verified
47
}
48
49
def
read_json(filepath):
50
with
open(filepath)
as
f:
51
return
json.load(f)
52
53
def
write_json(obj, filepath, indent=2):
54
with
open(filepath,
"w"
)
as
f:
Callers
2
main
Function · 0.90
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected