解析 json 字符串
import groovy.json.JsonSlurper;
def jsonSlurper = new JsonSlurper()
def obj = jsonSlurper.parseText('{ "foo": "bar", "baz": [1] }')
assert obj.foo == 'bar'
assert obj.baz == [1]
import groovy.json.JsonSlurper;
def jsonSlurper = new JsonSlurper()
def obj = jsonSlurper.parseText('{ "foo": "bar", "baz": [1] }')
assert obj.foo == 'bar'
assert obj.baz == [1]