itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

Support "if" without "else" clause #223

Closed LeonB closed 1 year ago

LeonB commented 1 year ago

Would be nice if gojq also supported this new feature of jq 1.6: https://github.com/jqlang/jq/pull/1825

itchyny commented 1 year ago

It does.

 $ gojq -n 'if . then true end'
null
LeonB commented 1 year ago

@itchyny Thanks! I had an old version of gojq installed 🤦