Is there an existing way to get json.dumps()
output to appear as "pretty" formatted JSON inside ipython notebook?
Is there an existing way to get json.dumps()
output to appear as "pretty" formatted JSON inside ipython notebook?
json.dumps
has an indent
argument, printing the result should be enough:
print(json.dumps(obj, indent=2))