If the task is to "print out the identifiers of all the entries in the array with isSparse == true", the appropriate jq filter will be:
.[] | select(.isSparse == true) | .id
If it is possible to duplicate .id values, then to ensure that only individual values ββare emitted, you can use the following:
map( select(.isSparse == true) | .id ) | unique[]
As @JeffMercado noted, if .isSparse is strictly logical, then select (.isSparse) will be enough.
source share