Issue
Is there an existing way to get json.dumps()
output to appear as "pretty" formatted JSON inside ipython notebook?
Solution
json.dumps
has an indent
argument, printing the result should be enough:
print(json.dumps(obj, indent=2))
Answered By - filmor
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.