I have this piece of JSON response
"A": {
"RandomName01": {
"B": "BOS",
"C": {
"RandomName02": {
"D": "32",
"E": "ABC",
"F": "DEF"
}
},
"G": "GHI"
}
I need to extract value of D from it, having two RandomName tags on the way. I can't find anything in documentation related to handling unknown names. I tried using [], *, [0], .. etc but I failed.
For example:
- def value = response.A..C..D
- def value = response[0].C[0].D
etc...
Thanks,