python get value from json
print(json_object_string)
OUTPUT
{"id":"20", "name":"Bob"}
json_object = json.loads(json_object_string)
print(json_object["name"])
OUTPUT
Bob
3
1
for key, value in data.items():
print key, value
Thank you!
1
0
Are there any code examples left?
New code examples in category Javascript