From edf52aa6673879b4d2a6814fe1942efa37871950 Mon Sep 17 00:00:00 2001 From: Kalle Stenflo Date: Wed, 22 Mar 2023 00:12:08 +0100 Subject: [PATCH] Release and fix docs --- README.md | 42 ++++++++++++++++++++++-------------------- build.gradle | 4 ++-- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 0b1e72a1..db57e822 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ Jayway JsonPath is a Java port of [Stefan Goessner JsonPath implementation](http News ---- +22 Mar 2023 - Released JsonPath 2.8.0 + 30 Jan 2022 - Released JsonPath 2.7.0 02 Jun 2021 - Released JsonPath 2.6.0 @@ -43,7 +45,7 @@ JsonPath is available at the Central Maven Repository. Maven users add this to y com.jayway.jsonpath json-path - 2.7.0 + 2.8.0 ``` @@ -165,25 +167,25 @@ Given the json } ``` -| JsonPath (click link to try)| Result | -| :------- | :----- | -| $.store.book[*].author| The authors of all books | -| $..author | All authors | -| $.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) | -| $..book[-2:] | Last two books | -| $..book[2:] | All books from index 2 (inclusive) to last | -| $..book[?(@.isbn)] | All books with an ISBN number | -| $.store.book[?(@.price < 10)] | All books in store cheaper than 10 | -| $..book[?(@.price <= $['expensive'])] | All books in store that are not "expensive" | -| $..book[?(@.author =~ /.*REES/i)] | All books matching regex (ignore case) | -| $..* | Give me every thing -| $..book.length() | The number of books | +| JsonPath | Result | +|:-------------------------------------------------------------------| :----- | +| $.store.book[*].author | The authors of all books | +| $..author | All authors | +| $.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) | +| $..book[-2:] | Last two books | +| $..book[2:] | All books from index 2 (inclusive) to last | +| $..book[?(@.isbn)] | All books with an ISBN number | +| $.store.book[?(@.price < 10)] | All books in store cheaper than 10 | +| $..book[?(@.price <= $['expensive'])] | All books in store that are not "expensive" | +| $..book[?(@.author =~ /.*REES/i)] | All books matching regex (ignore case) | +| $..* | Give me every thing +| $..book.length() | The number of books | Reading a Document ------------------ diff --git a/build.gradle b/build.gradle index 334ab46a..42d733ca 100644 --- a/build.gradle +++ b/build.gradle @@ -45,7 +45,7 @@ ext { ] ] - snapshotVersion = true + snapshotVersion = false } allprojects { @@ -122,7 +122,7 @@ subprojects { pom { name = jar.baseName - description = project.description + description = 'A library to query and verify JSON' url = 'https://github.com/jayway/JsonPath' licenses {