|
|
@ -215,8 +215,8 @@ Inline predicates are the ones defined in the path. |
|
|
|
List<Map<String, Object>> books = JsonPath.parse(json).read("$.store.book[?(@.price < 10)]"); |
|
|
|
List<Map<String, Object>> books = JsonPath.parse(json).read("$.store.book[?(@.price < 10)]"); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
In the current implementation you can use `&&` to combine multiple predicates `[?(@.price < 10 && @.category == 'fiction')]`. |
|
|
|
You can use `&&` and `||` to combine multiple predicates `[?(@.price < 10 && @.category == 'fiction')]` , |
|
|
|
OR operations are not supported in inline predicates yet. |
|
|
|
`[?(@.category == 'reference' || @.price > 10)]`. |
|
|
|
|
|
|
|
|
|
|
|
###Filter Predicates |
|
|
|
###Filter Predicates |
|
|
|
|
|
|
|
|
|
|
|