JsonSlurper is a Groovy class that makes parsing and working with JSON simpler than with Java.
JSON slurper which parses text or reader content into a data structure of lists and maps.
Example usage:
def slurper = new JsonSlurper()
def result = slurper.parseText('{"person":{"name":"Guillaume","age":33,"pets":["dog","cat"]}}')
assert result.person.name == "Guillaume"
assert result.person.age == 33
assert result.person.pets.size() == 2
assert result.person.pets[0] == "dog"
assert result.person.pets[1] == "cat"
For more info see the docs.