Created
September 27, 2016 18:25
-
-
Save bdkosher/455c8c44f6e79ecb829ea77fb7a09f2b to your computer and use it in GitHub Desktop.
CLI to pretty print JSON using Groovy
This file contains hidden or 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
groovy -e "println groovy.json.JsonOutput.prettyPrint(new File(args[0]).text)" %1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment