Groovy web console

subscribe to the feed Subscribe
to this
site

x

Published 1 month ago by x
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def hashval = [:]

hashval = [test: "string", nested: [
    test: "string"
]]

jsx = new groovy.json.JsonOutput()
print(jsx.toJson(hashval))