MCPcopy Create free account
hub / github.com/debjitpaul/refiner / write_json

Function write_json

data_preprocessing/utils.py:53–55  ·  view source on GitHub ↗
(obj, filepath, indent=2)

Source from the content-addressed store, hash-verified

51 return json.load(f)
52
53def write_json(obj, filepath, indent=2):
54 with open(filepath, "w") as f:
55 json.dump(obj, f, indent=indent)
56
57def read_jsonl(filepath):
58 data = []

Callers 3

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected