Top "Jsonslurper" questions

JsonSlurper is a Groovy class that makes parsing and working with JSON simpler than with Java.

Groovy compare two json with unknown nodes names and values

I have a rest API to test and I have to compare two json responses. Below you can find a …

json grails groovy jsonslurper
JsonSlurper returns No signature of method: groovy.json.JsonSlurper.parseText() is applicable for argument types: (java.util.ArrayList)

I'm trying to parse JSON file with JsonSlurper.parseText but keep getting similar problems. def jsonParse = null def http = new …

json parsing groovy jsonslurper
Groovy: validate JSON string

I need to check that a string is valid JSON in Groovy. My first thought was just to send it …

json validation groovy jsonslurper
How do I iterate on a Map object returned from JsonSlurper.parse(JSONFile)?

I'm using a Groovy script in Ready!Api 1.9.0 to decode a base64 string which is returned in a SOAP response …

json parsing groovy soapui jsonslurper
Using Groovy JsonSlurper to parse an array of objects

Groovy here. I am parsing a file that contains a list of all the countries: { "countries": [ { "id": "1", "sortname": "AF", "name": "…

json groovy jsonslurper
Groovy JsonSlurper and nested maps

I have a method that returns fairly-nested JSON such as: [[fizz: buzz, foos: [[count: 4, flim: flam], [count: 6, flim: flume]]]] When …

json groovy jsonslurper
How to use variable to extract value from JSON response using Groovy?

I'm trying to extract bicycle brand "Cannondale" from the JSON response by using the location of the value stored in …

json groovy soapui assertion jsonslurper