Groovy web console

subscribe to the feed Subscribe
to this
site

Pretty print map

Published 2 months ago by kd
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
params = [:]

params.resource_contact = "testing@example.com"
params.other_info = "The quick brown fox jumps over the lazy dogs"
params.deployment_contact = "deployer@example.com"

print """
Testing,

${params}

Doot
"""

import static groovy.json.JsonOutput.*
print prettyPrint(toJson(params))