|
5精币
本帖最后由 xbw123456 于 2020-7-12 23:49 编辑
如下所示 想要通过存取查询器判断 这个included[1].attributes.stats.getid的值是否存在 存在位置
数据地址应该怎么写 included[] data[]都不对...
{
"data": {
"type": "tdid",
"id": "60cee79a-d7a6-4f82-af46-1031bccd96a0",
"relationships": {
"rosters": {
"data": [
{
"type": "roster",
"id": "89c31553-ba26-4f3a-b58f-d350deeea55d"
},
{
"type": "roster",
"id": "f9bfb5b3-1efa-4017-8191-4aa3c0a0a80e"
},
{
"type": "roster",
"id": "421c99dc-44d1-4afd-bf70-aa2a59d51fda"
},
{
"type": "roster",
"id": "32978942-d2d2-4665-ba1e-7e388ce61482"
},
{
"type": "roster",
"id": "36923206-412f-4d7f-94e3-53be08512c8a"
},
{
"type": "roster",
"id": "15ace4ed-7c9a-403b-9bb3-9524466258bd"
},
{
"type": "roster",
"id": "ed582974-8ca3-4a70-afa1-3d67d160f434"
},
{
"type": "roster",
"id": "f417d1d9-086c-4b00-8e36-a0ffa2f25b69"
},
{
"type": "roster",
"id": "f1bcd803-1f19-493a-aa44-045c49f81282"
},
{
"type": "roster",
"id": "978e12f3-0fce-4748-b687-23d0822cd634"
},
{
"type": "roster",
"id": "896c8f52-ca71-4ee7-814e-e263fd0ccd9c"
},
{
"type": "roster",
"id": "c38efb06-d14c-4d3f-b44d-6fce35ed99b1"
},
{
"type": "roster",
"id": "c02ba1ca-1ade-4830-970d-d4d7e095cde0"
},
{
"type": "roster",
"id": "3dbb8905-c4c4-4908-a604-964d7dadc84f"
},
{
"type": "roster",
"id": "a9c520d3-4e51-496d-aa65-3cc9acb46bbe"
},
{
"type": "roster",
"id": "a93bc0e0-d26a-40fb-a239-75d43e8fbb44"
}
]
},
"assets": {
"data": [
{
"type": "asset",
"id": "e8f8b605-bf8f-11ea-ac19-aa22c859a304"
}
]
}
},
"attributes": {
"tags": null,
"gameMode": "squad",
"mapName": "Savage_Main",
"isCustomtdid": false,
"tdidType": "official",
"seasonState": "progress",
"duration": 1480,
"stats": null,
"titleId": "blue",
"shardId": "pxbo",
"createdAt": "2020-07-06T13:25:42Z"
},
"links": {
"schema": "",
"self": "https://api.playbattlegrounds.com/shards/pxbo/tdides/60cee79a-d7a6-4f82-af46-1031bccd96a0"
}
},
"included": [
{
"type": "roster",
"id": "3dbb8905-c4c4-4908-a604-964d7dadc84f",
"relationships": {
"team": {
"data": null
},
"pants": {
"data": [
{
"type": "pant",
"id": "0c9ef122-74ac-40e4-9789-d95adf2cb0a0"
},
{
"type": "pant",
"id": "5d531bc6-8fea-4a24-9724-013ca9bdcd18"
},
{
"type": "pant",
"id": "497da924-e14e-4da4-a05c-0acac8b10a60"
}
]
}
},
"attributes": {
"stats": {
"ran": 17,
"teamId": 7
},
"won": "false",
"shardId": "pxbo"
}
},
{
"type": "pant",
"id": "f1f19dfc-9b82-41fa-9681-99fd73f7ebe1",
"attributes": {
"stats": {
"getid": 3,
"requ": 0
},
"actor": "",
"shardId": "pxbo"
}
},
{
"type": "asset",
"id": "e8f8b605-bf8f-11ea-ac19-aa22c859a304",
"attributes": {
"name": "telemetry",
"createdAt": "2020-07-06T13:52:19Z",
"description": ""
}
}
],
"links": {
"self": "https://api-origin.playbattlegrounds.com/shards/pxbo/tdides/60cee79a-d7a6-4f82-af46-1031bccd96a0"
},
"meta": {}
}
|
最佳答案
查看完整内容
存取键值表.是否存在("//included[1].attributes.stats.getid")
|