jq cheat sheet

Delete index

jq 'del(.myarray[] | select(. == "b"))'
jq "del(.folders[] | select(.path == \"file://$symbolic_path\"))" /werm/werm-docker-srv/theia/workspace.theia-workspace

Multiple condition

jq -r ".[] | select(.name == \"$name\" and .version == \"$package_version\")";

Leave a Reply

Your email address will not be published.