Skip to content

Instantly share code, notes, and snippets.

@apotek
Created July 9, 2022 17:07
Show Gist options
  • Save apotek/96c8667cb5f194983959d503981f6673 to your computer and use it in GitHub Desktop.
Save apotek/96c8667cb5f194983959d503981f6673 to your computer and use it in GitHub Desktop.
BBEdit Text Filter for JSON prettification
# 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