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