Skip to content

Instantly share code, notes, and snippets.

@amrakm
Created December 3, 2022 16:31
Show Gist options
  • Save amrakm/f6a5288a954b15e8d5a87a879021d6dd to your computer and use it in GitHub Desktop.
Save amrakm/f6a5288a954b15e8d5a87a879021d6dd to your computer and use it in GitHub Desktop.
print json with indentation
import json
dict = json.loads(response.text)
print(json.dumps(dict, indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment