-
-
Save pieter-duplessis/335672893760158b60880048e328f7a5 to your computer and use it in GitHub Desktop.
A simple way to pretty print nested lists and maps in Groovy.
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
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