Last active
April 30, 2020 10:07
-
-
Save ShayekhBinIslam/ed04ba862551daf3df7660924da08cf8 to your computer and use it in GitHub Desktop.
Pretty Print Json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def pretty_print_json(data, indent=2): | |
print(json.dumps(json.loads(data), indent=indent)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment