import json data = {'people': [{'name': 'Scott', 'website': 'stackabuse.com', 'from': 'Nebraska'}]} print(json.dumps(data)) {"people": [{"name": "Scott", "website": "stackabuse.com", "from": "Nebraska"}]}