File size: 293 Bytes
396472d |
1 2 3 4 5 6 7 8 9 10 11 |
import json
def load_data(file_path):
with open(file_path, 'r', encoding='utf-8') as file:
data = json.load(file)
return data
def save_data(data, file_path):
with open(file_path, 'w', encoding='utf-8') as file:
json.dump(data, file, ensure_ascii=False, indent=4)
|