diff --git a/arke.py b/arke.py index 55c09c6..a819f59 100644 --- a/arke.py +++ b/arke.py @@ -108,8 +108,9 @@ while is_on: # queue up an alert if stateChanged = True results = [] with open("/shared/results.json", "r") as json_File: - for line in json_File: - results.append(json.loads(line)) + json_data = json.load(json_File) + for item in json_data: + results.append(item) for item in results: for key, value in item.items(): if stateChanged is True: