Answers for "groovy parse dictionary"

0

groovy parse dictionary

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
Posted by: Guest on July-04-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language