Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 41088f6f authored by Brett Zamir's avatar Brett Zamir
Browse files

Add XPath/JSONPath example to indicate getting multiple property results for objects

parent 0bc56314
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,7 @@ XPath | JSONPath | Result ...@@ -101,6 +101,7 @@ XPath | JSONPath | Result
//book[last()] | $..book[(@.length-1)] | the last book in order. //book[last()] | $..book[(@.length-1)] | the last book in order.
| $..book[-1:] | | $..book[-1:] |
//book[position()<3]| $..book[0,1] | the first two books //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[:2] |
//book[isbn] | $..book[?(@.isbn)] | filter all books with isbn number //book[isbn] | $..book[?(@.isbn)] | filter all books with isbn number
//book[price<10] | $..book[?(@.price<10)] | filter all books cheapier than 10 //book[price<10] | $..book[?(@.price<10)] | filter all books cheapier than 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment