Last active
June 11, 2024 12:18
-
-
Save esycat/6410360 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