Groovy web console

subscribe to the feed Subscribe
to this
site

ConfiglyKeysExample

Published 1 month ago by JP
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import groovy.json.JsonSlurper

json = new JsonSlurper()
def j = """{\n  "a": "YYYYYY"\n  }\n"""

def m = json.parseText(j)

println "before: " + m.toString()
m.a = 'ZZZZZZ'

println "after: " + m.toString()