From 41088f6f01df466fcc8bfc7e39d96c3bc0c3ad98 Mon Sep 17 00:00:00 2001 From: Brett Zamir <brettz9@yahoo.com> Date: Tue, 9 Dec 2014 19:56:02 -0700 Subject: [PATCH] Add XPath/JSONPath example to indicate getting multiple property results for objects --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0feba07..6a99da9 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ XPath | JSONPath | Result //book[last()] | $..book[(@.length-1)] | the last book in order. | $..book[-1:] | //book[position()<3]| $..book[0,1] | 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 -- GitLab