\n appears in json dump code example
Example: \n appears in json dump
import json
data = {'people': [{'name': 'Scott', 'website': 'stackabuse.com', 'from': 'Nebraska'}]}
print(json.dumps(data))
{"people": [{"name": "Scott", "website": "stackabuse.com", "from": "Nebraska"}]}