fix: Se abstrae metodo load_json
This commit is contained in:
7
Api/tools.py
Normal file
7
Api/tools.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
|
def load_json(file_path):
|
||||||
|
with open(file_path, 'r') as filejson:
|
||||||
|
return json.load(filejson)
|
||||||
Reference in New Issue
Block a user