Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Multiple expressions #19

Open
pawelphilipczyk opened this issue Jul 4, 2017 · 2 comments
Open

Multiple expressions #19

pawelphilipczyk opened this issue Jul 4, 2017 · 2 comments

Comments

@pawelphilipczyk
Copy link

Is it possible to write conditions like this:

$..images[?(@.type="gallery" AND @.format=="large")]

or something similar to achieve the same result?

@tricoos
Copy link

tricoos commented Aug 4, 2018

Doesn't look like it's supported and it's not working even if you try with "and" or "&&".
After first using this library I switched to this one: https://github.com/Skyscanner/JsonPath-PHP
But then you have to replace your "=" by "==" and to use "'" for the names. But it's finally working :)

@martinssipenko
Copy link
Contributor

This project is now marked as abandoned and suggests using softcreatr/jsonpath as a replacement. If you think this issue is still relevant please open a new ticket under the new project.

https://github.com/SoftCreatR/JSONPath

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

No branches or pull requests

3 participants