How can I duplicate an existing object within a JSON array using jq?
问题 I have the following geojson file: { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "LINE": "RED", "STATION": "Harvard" }, "geometry": { "type": "Point", "coordinates": [-71.118906072378209, 42.37402923068516] } }, { "type": "Feature", "properties": { "LINE": "RED", "STATION": "Ashmont" }, "geometry": { "type": "Point", "coordinates": [-71.063430144389983, 42.283883546225319] } } ] } I would like to append the second object within the "features" array to the