{
"userName": "test"
"customer": {
"mode": "BANK",
"modeDetails": {
"accountNo": "12345678901001",
"walletId": "11324354@paypal"
}
}
}
I am using jsonpath to select accountNo if mode="BANK" or else if mode=WALLET then walletId should be selected. I tried expression $.customer.modeDetails[$.customer.mode=='BANK'].accountNo but it doesn't work. Please help me on this.