鉴于此 JSON
{
"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过滤并选择features
拥有该MODE: D
属性的。据我所知,查询jq .[] | select(.MODE == "D")
应该有效,但它没有!
我错过了什么?
提前致谢。