MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / write_json_file

Function write_json_file

data/amazon18_data_process.py:35–38  ·  view source on GitHub ↗

Write data to JSON file

(data, file_path)

Source from the content-addressed store, hash-verified

33
34
35def write_json_file(data, file_path):
36 """Write data to JSON file"""
37 with open(file_path, 'w') as f:
38 json.dump(data, f, indent=2)
39
40
41def write_remap_index(index_map, file_path):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected