I have a json output that I have been able to parse successfully but I'm not able to read some of the properties value using groovy
From the below json data, I can parse this data
def parsedJsonGet = new groovy.json.JsonSlurper().parseText(Response)
def i = -1
parsedJsonGet.each {
thisRecord ->
i= i+1
//Here using thisRecord can go through each node
}
From the below json data I would like to read say Street value of each such nodes.
Json Code is in this format:
{
[
"Name": "ABC",
"Address": {
"":0,
"City": [
{
"Street": "Data1",
"Apt": "Data2",
"Pin": "Data3",
}
]
}
},
{
[
"Name": "ABC",
"Address": {
"":0,
"City": [
{
"Street": "",
"Apt": "",
"Pin": "",
}
]
}
}