Skip to content

Instantly share code, notes, and snippets.

@idletekz
Forked from osima/jsonPrettyPrint.groovy
Created April 24, 2017 20:07
Show Gist options
  • Save idletekz/709a85e6a226a8e932c82d6230904ca3 to your computer and use it in GitHub Desktop.
Save idletekz/709a85e6a226a8e932c82d6230904ca3 to your computer and use it in GitHub Desktop.
json pretty print using groovy
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