Groovy web console

subscribe to the feed Subscribe
to this
site
Json parse with slurper (via #groovywebconsole)
tweet this snippet Tweet
this
script

Json parse with slurper

Published 3 months ago by L
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def string = '{"a":"b"}{"a":"b"}'
def json = new groovy.json.JsonSlurper().parseText(string)
println json