-
-
Save crazy4groovy/84ac8ed61985fd4218d6 to your computer and use it in GitHub Desktop.
A simple way to pretty print nested lists and maps in 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
import static groovy.json.JsonOutput.* | |
def config = ['test': 'lalala'] | |
println prettyPrint(toJson(config)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment