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
Post a Comment