Groovy web console

subscribe to the feed Subscribe
to this
site

test json

Published 2 weeks ago by voldemort with tags json
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import groovy.json.JsonSlurper
import groovy.json.JsonOutput

def json = new JsonSlurper().parseText('{"TEST": "test value"}')
println json
JsonOutput.prettyPrint(JsonOutput.toJson(json))