spark85 / json-path

Automatically exported from code.google.com/p/json-path
0 stars 0 forks source link

AND operators? #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Sorry! OR and AND support is not yet done.

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Any update on this?

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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