boolean - jq - How to select objects where a field is 'false'? -


i'm having trouble implementing boolean checks jq. if have field "test" can boolean true or false, how use select find this?

initially tried following:

jq '.[] | select(.test=="false")' 

but think comparing strings here not work.

the json boolean values true , false, drop quotation marks, e.g. select(.test == false).


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -