-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
25 lines (22 loc) · 674 Bytes
/
test.py
File metadata and controls
25 lines (22 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import json
def main():
path = "monkey.json"
with open(path) as son:
all = json.load(son)
data = all["data"]
for run in data:
for key in run:
if(key == "id"):
print("run: "+run[key])
if(key == "attributes"):
attributes = run[key]
for key in attributes:
if(key == "status"):
print("status: "+attributes[key])
if(key == "links"):
links = run[key]
for key in links:
print("link to run: "+links[key])
print()
if __name__ == '__main__':
main()