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

Equality filter should use '==' instead of '=' #18

Open
hansthen opened this issue Dec 25, 2017 · 1 comment
Open

Equality filter should use '==' instead of '=' #18

hansthen opened this issue Dec 25, 2017 · 1 comment

Comments

@hansthen
Copy link

At least, that is how several other jsonpath implementations implement this.

E.g. the expression $.[?(@.foo='bar')] fails to parse in jayway's JsonPath implementation. In the implementation here, = is used for assignment to the attribute and == is used to compare for equality.

@plbertrand
Copy link

I would also point out that for regex, it should also be =~.

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

No branches or pull requests

2 participants