鉴于这种JSON过滤以GeoJSON有JQ
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"MODE": "A"
},
"geometry": {
"type": "Point",
"coordinates": [
-69.23583984375,
45.460130637921004
]
}
},
{
"type": "Feature",
"properties": {
"MODE": "D"
},
"geometry": {
"type": "Point",
"coordinates": [
-69.23651039600372,
45.46053888199693
]
}
}
]
}
我想使用jq过滤通过并选择具备MODE: D
财产features
。据我所知,查询jq .[] | select(.MODE == "D")
应该工作,但它不!
我错过了什么?
在此先感谢。