Skip to content

Instantly share code, notes, and snippets.

@Guigoz
Last active November 29, 2021 13:42
Show Gist options
  • Save Guigoz/5927642 to your computer and use it in GitHub Desktop.
Save Guigoz/5927642 to your computer and use it in GitHub Desktop.
GROOVY : Convert object to JSON
def builder = new groovy.json.JsonBuilder(data)
println builder.toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment