使用Python,我怎樣才能將字段id
提取到變量? Basicaly,我改造這個:從JSON輸出中選擇字段
{
"accountWide": true,
"criteria": [
{
"description": "some description",
"id": 7553,
"max": 1,
"orderIndex": 0
}
]
}
喜歡的東西
print "Description is: " + description
print "ID is: " + id
print "Max value is : " + max
你可以看看http://docs.python.org/library/json.html一切都可以在那裏找到。 – cb0