Jak wydrukować wszystkie wartości i klawiszę D
for i in d:
print d.keys(i), d.values(i)
Agreeable Ant
for i in d:
print d.keys(i), d.values(i)
x = json.loads("""{
"accountWide": true,
"criteria": [
{
"description": "some description",
"id": 7553,
"max": 1,
"orderIndex": 0
}
]
}""")
description = x['criteria'][0]['description']
id = x['criteria'][0]['id']
max = x['criteria'][0]['max']