Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!= invalid character #41

Closed
perplexes opened this issue Nov 2, 2012 · 3 comments
Closed

!= invalid character #41

perplexes opened this issue Nov 2, 2012 · 3 comments

Comments

@perplexes
Copy link

$ (some input) | ./jq '.details[] | select(.health != "ok")'
error: Invalid character
.details[] | select(.health != "ok")
                            ^
1 compile error

Seems valid to me...

@stroan
Copy link
Contributor

stroan commented Nov 2, 2012

This feature has been added on master, the binaries should be rebuilt. You can build master yourself or use the syntax:

.details[] | select(.health == "ok" | not)

@igor47
Copy link

igor47 commented Nov 21, 2012

came here to complain about the same issue; any idea when the official binaries will be updated?

igor47@Robot:~ $ echo '[{"name":"joe"},{"name":"mike"}]' | jq '.[] | select(.["name"] == "mike")'
{
  "name": "mike"
}
igor47@Robot:~ $ echo '[{"name":"joe"},{"name":"mike"}]' | jq '.[] | select(.["name"] != "mike")'
error: Invalid character
.[] | select(.["name"] != "mike")
                       ^
1 compile error

@stedolan
Copy link
Contributor

Binaries updated, finally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants