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

how to select according element value #21

Closed
wanghaisheng opened this issue Jul 7, 2015 · 3 comments
Closed

how to select according element value #21

wanghaisheng opened this issue Jul 7, 2015 · 3 comments

Comments

@wanghaisheng
Copy link

for example ,if i want to select all the books whose isbn =0-553-21311-3

$..book[?(@.isbn='0-553-21311-3')] 

it does not work

@toymachiner62
Copy link
Contributor

👍 I'm also trying to figure out how to do this. There's no documentation on this. Help!

@toymachiner62
Copy link
Contributor

It seems that double equals is the trick.

$..book[?(@.isbn=='0-553-21311-3')] 

Pull request created to update documentation #24

@dchester
Copy link
Owner

dchester commented Sep 5, 2015

#24 is merged.

@dchester dchester closed this as completed Sep 5, 2015
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

3 participants