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