この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")
はずですが、機能しません!
私は何が欠けていますか?
前もって感謝します。