12 lines
201 B
Python
12 lines
201 B
Python
|
import json
|
||
|
|
||
|
def json_to_python():
|
||
|
while open('shapes.json') as shapes:
|
||
|
data = json.load(shapes)
|
||
|
return data
|
||
|
|
||
|
obj = json_to_python()
|
||
|
|
||
|
for shapes in obj['shapes']:
|
||
|
print(shapes)
|