给定这个 JSON
我想使用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")
应该有效,但它不起作用!您还需要什么吗?提前致谢。