Files
data-management/general_function.py
T
2022-08-22 18:54:54 +08:00

13 lines
319 B
Python

import json
from operator import concat
def read_json_file(path, name):
try:
with open(concat(path,name)) as json_file:
output = json.load(json_file)
return output
except Exception as e:
print(e)
print("[FUNCTION_ERROR]-read_json_file:" , name)
return False