diff --git a/README.md b/README.md index 6a99da96d0165d49b1b5b247a16fa84ce744e8bf..b5bbd46f2688983d19b39380f5f16d77dab06438 100644 --- a/README.md +++ b/README.md @@ -100,9 +100,8 @@ XPath | JSONPath | Result //book[3] | $..book[2] | the third book //book[last()] | $..book[(@.length-1)] | the last book in order. | $..book[-1:] | -//book[position()<3]| $..book[0,1] | the first two books +//book[position()<3]| $..book[0,1]<br>$..book[:2]| the first two books //book/*[self::category\|self::author] or //book/(category,author) in XPath 2.0| $..book[category,author]| the categories and authors of all books - | $..book[:2] | //book[isbn] | $..book[?(@.isbn)] | filter all books with isbn number //book[price<10] | $..book[?(@.price<10)] | filter all books cheapier than 10 //*[price>19]/.. | $..[?(@.price>19)]^ | categories with things more expensive than 19