Created
August 22, 2011 08:50
-
-
Save osima/1161966 to your computer and use it in GitHub Desktop.
json pretty print 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
json = '{"twitter":"@osima.jp","web site":["http://osima.jp/","http://www.my-notebook.net/"]}' | |
println groovy.json.JsonOutput.prettyPrint(json) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment