Published
- 1 min read
beautify json python
The solution for this is noted below
beautify json python
Solution
>>> import json
>>> print json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
{
"4": 5,
"6": 7
}
Try other methods by searching on the site. That is if this doesn’t work