使用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