I am trying to use the Jenkins pipeline for Json format input. I am trying to pass the Json format String in multiline string parameter where I am passing parameter like below image but I am not able to able to parse it using JsonSlurper, where test is the name of the multiline string input. Can anyone help me how can I parse it in groovy?
Is it possible to parse the Json format in multiline string parameter ?
multiline string parameter input as Json
def jsonSlurper = new JsonSlurper();
def infra = jsonSlurper.parse($test) ;