Spaces:
Sleeping
Sleeping
File size: 341 Bytes
c20a1af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Copyright (C) 2020 * Ltd. All rights reserved.
# author : Sanghyeon Jo <[email protected]>
import json
def read_json(filepath):
with open(filepath, 'r') as f:
data = json.load(f)
return data
def write_json(filepath, data):
with open(filepath, 'w') as f:
json.dump(data, f, indent = '\t')
|