@@ -9,33 +9,6 @@ Jayway JsonPath
9
9
10
10
Jayway JsonPath is a Java port of [ Stefan Goessner JsonPath implementation] ( http://goessner.net/articles/JsonPath/ ) .
11
11
12
- News
13
- ----
14
- 26 Mar 2023 - Released JsonPath 2.8.0
15
-
16
- 30 Jan 2022 - Released JsonPath 2.7.0
17
-
18
- 02 Jun 2021 - Released JsonPath 2.6.0
19
-
20
- 10 Dec 2020 - Released JsonPath 2.5.0
21
-
22
- 05 Jul 2017 - Released JsonPath 2.4.0
23
-
24
- 26 Jun 2017 - Released JsonPath 2.3.0
25
-
26
- 29 Feb 2016 - Released JsonPath 2.2.0
27
-
28
- 22 Nov 2015 - Released JsonPath 2.1.0
29
-
30
- 19 Mar 2015 - Released JsonPath 2.0.0
31
-
32
- 11 Nov 2014 - Released JsonPath 1.2.0
33
-
34
- 01 Oct 2014 - Released JsonPath 1.1.0
35
-
36
- 26 Sep 2014 - Released JsonPath 1.0.0
37
-
38
-
39
12
Getting Started
40
13
---------------
41
14
@@ -45,7 +18,7 @@ JsonPath is available at the Central Maven Repository. Maven users add this to y
45
18
<dependency >
46
19
<groupId >com.jayway.jsonpath</groupId >
47
20
<artifactId >json-path</artifactId >
48
- <version >2.8 .0</version >
21
+ <version >2.9 .0</version >
49
22
</dependency >
50
23
```
51
24
@@ -232,10 +205,10 @@ try to cast the result to the type expected by the invoker.
232
205
233
206
``` java
234
207
// Will throw an java.lang.ClassCastException
235
- List<String > list = JsonPath . parse(json). read(" $.store.book[0].author" )
208
+ List<String > list = JsonPath . parse(json). read(" $.store.book[0].author" );
236
209
237
210
// Works fine
238
- String author = JsonPath . parse(json). read(" $.store.book[0].author" )
211
+ String author = JsonPath . parse(json). read(" $.store.book[0].author" );
239
212
```
240
213
241
214
When evaluating a path you need to understand the concept of when a path is ` definite ` . A path is ` indefinite ` if it contains:
0 commit comments