JSON: Difference between revisions
From charlesreid1
No edit summary |
|
(No difference)
| |
Revision as of 09:34, 21 February 2018
to print out pretty json using Python:
d = dict(a=1,b=2,c=3)
with open('pretty.json','w') as f:
json.dump(d, f, separators=(',',': '),indent=4)