start windows
This commit is contained in:
11
utils/JsonReader.py
Normal file
11
utils/JsonReader.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
class JsonReader:
|
||||
def __init__(self, json_file):
|
||||
self.data = self._load_json(json_file)
|
||||
|
||||
def _load_json(self, json_file : str):
|
||||
f = open(json_file)
|
||||
js = json.load(f)
|
||||
|
||||
return js
|
||||
Reference in New Issue
Block a user