Skip to content

Instantly share code, notes, and snippets.

@esycat
Last active June 11, 2024 12:18
Show Gist options
  • Save esycat/6410360 to your computer and use it in GitHub Desktop.
Save esycat/6410360 to your computer and use it in GitHub Desktop.
A simple way to pretty print nested lists and maps in Groovy.
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