Source Code:
(back to article)
import json json_data = '{"name": {"first": "John", "last": "Doe"}, "age": 30, "city": "New York", "hobbies": ["reading", "traveling", "photography"]}' person = json.loads(json_data) print(person['name']['first'])
Result:
Report an issue