Answers for "\n appears in json dump"

0

\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"}]}
Posted by: Guest on December-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language