Groovy web console

subscribe to the feed Subscribe
to this
site
jsontest (via #groovywebconsole)
tweet this snippet Tweet
this
script

jsontest

Published 4 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def jsonSlurper = new groovy.json.JsonSlurper()
def json = jsonSlurper.parseText("[1,2,3,4,5]")
json.find { it == 3 }