我有这样的文件:
{ "baths": 2, "beds": 3, "id": "3225C", "addrs": [
{
"line2": "",
"line3": "",
"state": "OH",
"zip": "67845",
"line1": "3225 ABC AVE",
"city": "CLEVELAND"
},
{
"line2": "",
"line3": "",
"state": "FL",
"zip": "32818",
"line1": "2438 DEF AVE",
"city": "ORLANDO"
} ], "homeAddress": {
"line2": "",
"line3": "",
"state": "FL",
"zip": "32818",
"line1": "1234 CHICOTA AVE",
"city": "ORLANDO" }, "rentingAddresses": {
"ownsObjects": true,
"count": 0,
"arrayManager": {},
"items": [] }, "mailAddress": [
"4561 RAYCO AVE",
"",
"",
"ORLANDO",
"FL",
"32818" ] }
我正在尝试查找哪些客户端addrs
的状态处于“OH”状态。我的 aql 查询是:
for client in clients.addrs
filter client.state == "OH"
return client
但我不断得到[1563] list expected
。还有其他方法可以处理数组吗?