I've got such string from JSON request:
[{"foo": "100100000024635"}]
here are the request:
list = json.dumps(bar.json()['result'])
and I can't get it by list['foo']
what you get in the response is a list of dictionaries.
iterate the list and then read the value for key 'foo'
for obj in list:
print obj['foo']
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.