I have a json like below:
[
{
"skuId": "1234",
"plans": [
{
"plan": {
"planName": "plan1",
"planId": "abcd1231",
}
},
{
"plan": {
"planName": "plan2",
"planId": "loks3123",
}
}
]
},
{
"skuId": "5341",
"plans": [
{
"plan": {
"planName": "plan3",
"planId": "awer3234",
}
},
{
"plan": {
"planName": "plan4",
"planId": "gefd4231",
}
}
]
},
{
"skuId": "7649",
"plans": [
{
"plan": {
"planName": "plan5",
"planId": "kitv5397",
}
}
]
}
]
Now i have a planId "loks3123", and i want to get the skuId where it belongs to. In this case planId "loks3123" belongs to skuId "1234".
Is it possible using JsonPath to do that? If so, How to do that using JsonPath? If not, what should i do?
Thanks!