It converts JSON types directly into standard Java/Groovy types, such as java.util.LinkedHashMap for objects and java.util.ArrayList for arrays.
import groovy.json.JsonSlurper def jsonSlurper = new JsonSlurper() def data = jsonSlurper.parseText('{"project": "Groovy", "active": true}') assert data.project == "Groovy" assert data.active == true Use code with caution. org/codehaus/groovy/groovy-json/3.0.9 Central Repository: org/codehaus/groovy/groovy-json/3.0. 9. JsonSlurper (Groovy 5.0.4) groovy.json.jsonslurper jar download
The primary source for downloading the JAR is the . Depending on your project’s version of Groovy, the group ID may vary: It converts JSON types directly into standard Java/Groovy
dependencies { implementation 'org.apache.groovy:groovy-json:4.0.6' } Use code with caution. Key Features of JsonSlurper groovy.json.jsonslurper jar download