JSON array to bash variables using jq
I’ve got a JSON array like so:
I’ve got a JSON array like so:
I want to add an array with elements and value into an existing json file using jq.
The issue of jq needing an explicit filter when the output is redirected is discussed all over the web. But I’m unable to redirect output if jq is part of a pipe chain, even when an explicit filter is in use.