Move from line by line items to object by object.

master
jowj 4 years ago
parent 1d02b3102b
commit 34e94f6576

@ -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:

Loading…
Cancel
Save