📜  groovy 解析字典 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:38.455000             🧑  作者: Mango

代码示例1
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