Executing the following jq command works fine on Mac OS Catalina (jq version 1.6) :
echo $(jq '.paths | to_entries | map(select(.value[].tags | index("Tag123"))) | from_entries' custom.json)
However executing it on CentOS (CentOS release 6.9 (Final)) (jq version 1.3) returns the following error :
echo $(jq '.paths | to_entries | map(select(.value[].tags | index("Shell"))) | from_entries' custom.json)
error: index is not defined
.paths | to_entries | map(select(.value[].tags | index("Shell"))) | from_entries
^^^^^
1 compile error