CDMA / data /tools /general /json_utils.py
introvoyz041's picture
Migrated from GitHub
5917d50 verified
Raw
History Blame Contribute Delete
327 Bytes
# Copyright (C) 2020 * Ltd. All rights reserved.
# author : Sanghyeon Jo <josanghyeokn@gmail.com>
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')