erm....don't use jsonSlurper if you've running ReadyAPI! v2.3.0 - if you're still running earlier versions that will work - but I found out today (@New2API told me via another post) that jsonSlurper has been deprecated in the latest version and to use jsonUtil instead
Another post on the forum indicated the following changes
import net.sf.json.groovy.JsonSlurper
def abc = context.expand(grab an array from request/response)
def abcArray = new JsonSlurper().parseText(abc).results
def x = abcArray.size()
--> x would tell me the number of nodes
Replaced now with:
import com.eviware.soapui.support.JsonUtil
def abc = context.expand(grab an array from request/response)
def abcArray = JsonUtil.parseTrimmedText(abc)
def x = abcArray.size()
--> x would tell me the number of nodes
Although - I couldn't get it to jsonUtil to work with my script..... :(
cheers,
richie