Published
- 1 min read
json.dump(data file indent=4)
The solution for this is noted below
json.dump(data file indent=4)
Solution
with open('data.json', 'w') as file
json.dumps(data, file, indent=4)
Try other methods by searching on the site. That is if this doesn’t work