From da0c048f4efa8fe657820bc77c58aadef4e00a8b Mon Sep 17 00:00:00 2001 From: Jochen Berger Date: Thu, 23 Mar 2017 11:07:02 +0100 Subject: [PATCH] add example for negative array index --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5a7a6c85..e0953842 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ Given the json | $.store.* | All things, both books and bicycles | | $.store..price | The price of everything | | $..book[2] | The third book | +| $..book[-2] | The second to last book | | $..book[0,1] | The first two books | | $..book[:2] | All books from index 0 (inclusive) until index 2 (exclusive) | | $..book[1:2] | All books from index 1 (inclusive) until index 2 (exclusive) |