You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -170,13 +170,13 @@ Given the json
170
170
| <ahref="http://jsonpath.herokuapp.com/?path=$.store.*"target="_blank">$.store.*</a> | All things, both books and bicycles |
171
171
| <ahref="http://jsonpath.herokuapp.com/?path=$.store..price"target="_blank">$.store..price</a> | The price of everything |
172
172
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[2]"target="_blank">$..book[2]</a> | The third book |
173
-
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[2]"target="_blank">$..book[-2]</a> | The second to last book |
173
+
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[-2]"target="_blank">$..book[-2]</a> | The second to last book |
174
174
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[0,1]"target="_blank">$..book[0,1]</a> | The first two books |
175
175
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[:2]"target="_blank">$..book[:2]</a> | All books from index 0 (inclusive) until index 2 (exclusive) |
176
176
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[1:2]"target="_blank">$..book[1:2]</a> | All books from index 1 (inclusive) until index 2 (exclusive) |
177
177
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[-2:]"target="_blank">$..book[-2:]</a> | Last two books |
178
-
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[2:]"target="_blank">$..book[2:]</a> |Book number two from tail |
179
-
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[?(@.isbn)]"target="_blank">$..book[?(@.isbn)]</a> | All books with an ISBN number |
178
+
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[2:]"target="_blank">$..book[2:]</a> |All books from index 2 (inclusive) to last|
179
+
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[?(@.isbn)]"target="_blank">$..book[?(@.isbn)]</a> | All books with an ISBN number |
180
180
| <ahref="http://jsonpath.herokuapp.com/?path=$.store.book[?(@.price < 10)]"target="_blank">$.store.book[?(@.price < 10)]</a> | All books in store cheaper than 10 |
181
181
| <ahref="http://jsonpath.herokuapp.com/?path=$..book[?(@.price <= $['expensive'])]"target="_blank">$..book[?(@.price <= $['expensive'])]</a> | All books in store that are not "expensive" |
0 commit comments