我正在尝试从我执行发布请求的 JSON 文件中的细节中提取/解析值。
这是 JSON 文件。我试图从键“AN”中获取值。我希望能够提取诸如“ shannoncampbell_znyq1 ”、“ katiekapprelmac ”等值,以便第二行中的值不等于数字零。例如,由于katiekapprelmac的第二行值(该行是T7)不等于零,我的代码应该将其吐出(katiekapprelmac应该是输出)。然而事实并非如此。
JSON 文件:
{
"id": "jsonrpc",
"jsonrpc": "2.0",
"result": {
"result": [
{
"AccountId": 697429,
"Flags": [
"AutoDeployed"
],
"PartnerId": 287562,
"Settings": [
{
"AN": "shannoncampbell_znyq1"
},
{
"T7": "0"
}
]
},
{
"AccountId": 725177,
"Flags": null,
"PartnerId": 287562,
"Settings": [
{
"AN": "katiekapprelmac"
},
{
"T7": "5"
}
]
},
{
"AccountId": 689130,
"Flags": [
"AutoDeployed"
],
"PartnerId": 287562,
"Settings": [
{
"AN": "sara-pc_wpv7h"
},
{
"T7": "0"
}
]
},
{
"AccountId": 697531,
"Flags": null,
"PartnerId": 287562,
"Settings": [
{
"AN": "kaelaweeksmac"
},
{
"T7": "0"
}
]
},
{
"AccountId": 615877,
"Flags": null,
"PartnerId": 249098,
"Settings": [
{
"AN": "elenimacbookpro"
},
{
"T7": "0"
}
]
},
拉丁的传说
慕娘9325324
相关分类