From af7e516c69df680a6584fca7180ef082eb67c96c Mon Sep 17 00:00:00 2001 From: kalle Date: Sat, 20 Jan 2024 10:38:24 +0100 Subject: [PATCH] Release 2.9.0 --- README.md | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index c51cb81c..9a21e885 100644 --- a/README.md +++ b/README.md @@ -9,33 +9,6 @@ Jayway JsonPath Jayway JsonPath is a Java port of [Stefan Goessner JsonPath implementation](http://goessner.net/articles/JsonPath/). -News ----- -26 Mar 2023 - Released JsonPath 2.8.0 - -30 Jan 2022 - Released JsonPath 2.7.0 - -02 Jun 2021 - Released JsonPath 2.6.0 - -10 Dec 2020 - Released JsonPath 2.5.0 - -05 Jul 2017 - Released JsonPath 2.4.0 - -26 Jun 2017 - Released JsonPath 2.3.0 - -29 Feb 2016 - Released JsonPath 2.2.0 - -22 Nov 2015 - Released JsonPath 2.1.0 - -19 Mar 2015 - Released JsonPath 2.0.0 - -11 Nov 2014 - Released JsonPath 1.2.0 - -01 Oct 2014 - Released JsonPath 1.1.0 - -26 Sep 2014 - Released JsonPath 1.0.0 - - Getting Started --------------- @@ -45,7 +18,7 @@ JsonPath is available at the Central Maven Repository. Maven users add this to y com.jayway.jsonpath json-path - 2.8.0 + 2.9.0 ``` @@ -232,10 +205,10 @@ try to cast the result to the type expected by the invoker. ```java //Will throw an java.lang.ClassCastException -List list = JsonPath.parse(json).read("$.store.book[0].author") +List list = JsonPath.parse(json).read("$.store.book[0].author"); //Works fine -String author = JsonPath.parse(json).read("$.store.book[0].author") +String author = JsonPath.parse(json).read("$.store.book[0].author"); ``` When evaluating a path you need to understand the concept of when a path is `definite`. A path is `indefinite` if it contains: