From 6035e81f64aa38f3bcfda7d8b0cea9a428ff1a1b Mon Sep 17 00:00:00 2001 From: kallestenflo Date: Thu, 18 Sep 2014 22:46:56 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1d20bd1a..784d646b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Operators | `*` | Wildcard. Available anywhere a name or numeric are required. | | `..` | Deep scan. Available anywhere a name is required. | | `.` | Dot-notated child | -| `['' (, ')']` | Bracket-notated child or children | +| `['' (, '')]` | Bracket-notated child or children | | `[ (, )]` | Array index or indexes | | `[start:end]` | Array slice operator | | `[?()]` | Filter expression. Expression must evaluate to a boolean value. | @@ -74,7 +74,8 @@ Given the "color": "red", "price": 19.95 } - } + }, + "expensive price": 10 } ``` @@ -92,7 +93,8 @@ Given the | `$..book[-2:]` | Last two books | | `$..book[2:]` | Book number two from tail | | `$..book[?(@.isbn)]` | All books with an ISBN number | -| `$.store.book[?(@.price<10)]` | All books in store cheaper than 10 | +| `$.store.book[?(@.price < 10)]` | All books in store cheaper than 10 | +| `$.store.book[?(@.price <= $['expensive price'])]` | All books in store that are not "expensive" | | `$..*` | Give me every thing you got |