forked from SelfPrivacy/selfprivacy-rest-api
12 lines
260 B
Python
12 lines
260 B
Python
|
import json
|
||
|
|
||
|
|
||
|
def read_json(file_path):
|
||
|
with open(file_path, "r", encoding="utf-8") as file:
|
||
|
return json.load(file)
|
||
|
|
||
|
|
||
|
def write_json(file_path, data):
|
||
|
with open(file_path, "w", encoding="utf-8") as file:
|
||
|
json.dump(data, file, indent=4)
|