Created
May 28, 2019 19:15
-
-
Save phdesign/6394cf2d2525701de4f456553323b8ef to your computer and use it in GitHub Desktop.
Sort JSON properties on the command line using python
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
cat /dev/clipboard | python -c 'import json, sys; json.dump(json.load(sys.stdin), sys.stdout, indent=4, sort_keys=True);' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment