From 8d546b2f90d4f336447f38eb2324800d19b335c7 Mon Sep 17 00:00:00 2001 From: Steven Alexander Date: Tue, 10 Feb 2015 12:53:28 +0000 Subject: [PATCH] minor README update to document the support of OR operations for inline predicates introduced in 1.2.0 update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 48c944d1..a76a8c90 100644 --- a/README.md +++ b/README.md @@ -215,8 +215,8 @@ Inline predicates are the ones defined in the path. List> books = JsonPath.parse(json).read("$.store.book[?(@.price < 10)]"); ``` -In the current implementation you can use `&&` to combine multiple predicates `[?(@.price < 10 && @.category == 'fiction')]`. -OR operations are not supported in inline predicates yet. +You can use `&&` and `||` to combine multiple predicates `[?(@.price < 10 && @.category == 'fiction')]` , +`[?(@.category == 'reference' || @.price > 10)]`. ###Filter Predicates