Created
July 9, 2022 17:07
-
-
Save apotek/96c8667cb5f194983959d503981f6673 to your computer and use it in GitHub Desktop.
BBEdit Text Filter for JSON prettification
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
# Requires Python 3. | |
# Place this script in ~/Library/Application Support/BBEdit/Text Filters. | |
# If it doesn't show up in the "apply text filter" menu item, you may need to restart BBEdit. | |
#!/usr/bin/env python3 | |
import sys, json | |
print(json.dumps(json.load(sys.stdin), indent=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment