vigossjjj/json-path

AND operators?

Closed this issue · 8 comments

The library is great - thanks!  One question - does this library support a 
JSONPath syntax for doing multiple OR'ed expressions?  I figured out you could 
do this for AND:

$..book[?(@.price>10)][?(@.price<20)]

but can I do OR logical expressions also? In the javascript version, you can do:

$..book[?(@.price<10 || @.price>20)]

for OR and for AND:

$..book[?(@.price>10 & @.price<20)]

Thanks

Ian 

Original issue reported on code.google.com by ian.j.ta...@gmail.com on 18 Feb 2013 at 6:23

I'm stuck at the same place, is there any plan to support OR operation (and 
probably AND in a more natural way ?

Original comment by khaled.a...@gmail.com on 22 Feb 2013 at 6:27

Sorry! OR and AND support is not yet done.

Original comment by kalle.st...@gmail.com on 20 Aug 2013 at 10:59

Original comment by kalle.st...@gmail.com on 12 Dec 2013 at 10:15

  • Changed state: Accepted
hi, 

Is AND and OR support under development ? If yes, when will it be published ? 
Thanks ! 

Original comment by elaineca...@gmail.com on 27 Feb 2014 at 12:15

Any update on this?

Original comment by imafraid...@gmail.com on 27 May 2014 at 7:58

There is AND support in next version. Don't think there will be time for OR 
this time.

Original comment by kalle.st...@gmail.com on 18 Sep 2014 at 5:34

Original comment by kalle.st...@gmail.com on 8 Oct 2014 at 6:33

  • Changed state: Started

Original comment by kalle.st...@gmail.com on 8 Dec 2014 at 8:05

  • Changed state: Done