jq add and delete

16/02/2023

add something in json

cd /root/docker/flatbay && jq '. += { "overrides": { "esquery": "1.4.0" } }' package.json > /tmp/suce && mv /tmp/suce package.json && npm install;

delete something in json

jq 'del(.pages)' myfile.json

Raccourcis