Source Code:
(back to article)
import json # JSON data data = '{"name": "John Smith", "age": 30, "city": "New York"}' # Parse JSON data parsed_data = json.loads(data) # Access data print(parsed_data["name"]) # Output: John Smith
Result:
Report an issue