📅  最后修改于: 2022-03-11 14:49:38.455000             🧑  作者: Mango
import groovy.json.*
def x = "{'key1': 'val1', 'key2': 'val2'}"
def parsed = new JsonSlurper().setType(JsonParserType.LAX).parseText(x)
println parsed.JIRACHEF
println parsed.JIRADEPLOYER
println parsed.JIRASINGLEBUILD