所以我有这个json文件:
{
"participantIdentities": [
{
"player": {
"summonerName": "C9 Kev",
"summonerId": "scIpmmwEKJpPGi2DZLylEbmhrSjfkBMcoxYyeamiUc2tUu8",
"accountId": "i9_bugepKjVwgGwi9HoTAxp_vhTQh9KU3pl9TZYFcyb9xQ"
},
"participantId": 1
},
{
"player": {
"summonerName": "R0YALEwCHEESE",
"summonerId": "CT8AMcHE9bD6URaW39rndvRWI0mntBfjbwy9VkC7DF6L2ao",
"accountId": "Wqe588a6pGsdG-UB1LYRam_kOD8gcBMGT53O6fOYQSmN7rE"
},
"participantId": 2
}
]
}
这就是我要完成的事情:
搜索预定的“ summonerName”值,然后返回以下“ participantId”。
例如: 我搜索“ C9 Kev”并返回“ 1”(“ participantId”)。