JSON路径提取器:JSON路径表达式 [英] JSON Path Extractor : JSON Path Expression

查看:625
本文介绍了JSON路径提取器:JSON路径表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要获取

beneficiaryType = OtherBankCustomer.
My Json response is as follows:
{
    "busBeneficiaryBeanList": [{
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2090",
        "senderMobileNo": null,
        "beneficiaryName": "Shibashish Dash",
        "beneficiaryNickName": "Shib",
        "beneficiaryType": "WalletCustomer",
        "beneficiaryMobileNo": "9778697852",
        "status": "Active",
        "time": null,
        "accountno": "8093630503",
        "ifsccode": null,
        "bankType": null,
        "bankName": null,
        "address1": "testtesttest",
        "address2": "ewretrytutyutyityju",
        "address3": "fdfdddffr",
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2113",
        "senderMobileNo": null,
        "beneficiaryName": "Girija",
        "beneficiaryNickName": "Girija",
        "beneficiaryType": "WalletCustomer",
        "beneficiaryMobileNo": "9861032490",
        "status": "Active",
        "time": null,
        "accountno": null,
        "ifsccode": null,
        "bankType": null,
        "bankName": null,
        "address1": "fdgfrhrgrbhegfbsdgb",
        "address2": null,
        "address3": null,
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2102",
        "senderMobileNo": null,
        "beneficiaryName": "Sonu",
        "beneficiaryNickName": "Sonu",
        "beneficiaryType": "OtherBankCustomer",
        "beneficiaryMobileNo": "8093630503",
        "status": "Active",
        "time": null,
        "accountno": "12365478969",
        "ifsccode": "SBIN0000000",
        "bankType": null,
        "bankName": null,
        "address1": "qwertyuiop",
        "address2": "asdfghjkll",
        "address3": null,
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2103",
        "senderMobileNo": null,
        "beneficiaryName": "kajal",
        "beneficiaryNickName": "kajal",
        "beneficiaryType": "OtherBankCustomer",
        "beneficiaryMobileNo": "8093630503",
        "status": "Active",
        "time": null,
        "accountno": "12365477777",
        "ifsccode": "SBIN0000000",
        "bankType": null,
        "bankName": null,
        "address1": "qwertyuiop",
        "address2": "asdfghjkll",
        "address3": null,
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2104",
        "senderMobileNo": null,
        "beneficiaryName": "Ajay",
        "beneficiaryNickName": "Ajay",
        "beneficiaryType": "OtherBankCustomer",
        "beneficiaryMobileNo": "8093630503",
        "status": "Active",
        "time": null,
        "accountno": "12365477775",
        "ifsccode": "SBIN0000000",
        "bankType": null,
        "bankName": null,
        "address1": "qwertyuiop",
        "address2": "asdfghjkll",
        "address3": null,
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2111",
        "senderMobileNo": null,
        "beneficiaryName": "devgan",
        "beneficiaryNickName": "devgan",
        "beneficiaryType": "OtherBankCustomer",
        "beneficiaryMobileNo": "8093630503",
        "status": "Active",
        "time": null,
        "accountno": "123456789012",
        "ifsccode": "BKDN0999848",
        "bankType": null,
        "bankName": null,
        "address1": "qwertyuiop",
        "address2": "asdfghjkll",
        "address3": null,
        "wPin": null,
        "randomNumber": null
    }, {
        "beneficiary_serial_no": 0,
        "beneficiary_id": "2112",
        "senderMobileNo": null,
        "beneficiaryName": "Sony",
        "beneficiaryNickName": "Sony",
        "beneficiaryType": "DenaAccountCustomer",
        "beneficiaryMobileNo": "8093630503",
        "status": "Active",
        "time": null,
        "accountno": "005013023756",
        "ifsccode": null,
        "bankType": null,
        "bankName": null,
        "address1": "Near Sai temple",
        "address2": "SBI ATM",
        "address3": "SS bihar",
        "wPin": null,
        "randomNumber": null
    }],
    "busPasswordPolicyBean": {
        "minLen": 1,
        "maxLen": 2,
        "minNumRqd": 1,
        "minUpperCaseChars": 0,
        "minLowerCaseChars": 0,
        "minSpclChars": 0,
        "spclCharSet": "#@",
        "pwdType": "SecretCode",
        "lastUpdatedOn": 1497433024653,
        "updatedBy": "1234"
    }

}

推荐答案

您所需的JSON路径表达式如下:

Your required JSON Path Expression would be like this:

$.busBeneficiaryBeanList[?(@.beneficiaryType=='OtherBankCustomer')].beneficiary_id

这篇关于JSON路径提取器:JSON路径表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆