鑑於這種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")
應該工作,但它不!
我錯過了什麼?
在此先感謝。