You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-20
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ Jayway JsonPath is a Java port of [Stefan Goessner JsonPath implementation](http
11
11
12
12
News
13
13
----
14
+
22 Mar 2023 - Released JsonPath 2.8.0
15
+
14
16
30 Jan 2022 - Released JsonPath 2.7.0
15
17
16
18
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
43
45
<dependency>
44
46
<groupId>com.jayway.jsonpath</groupId>
45
47
<artifactId>json-path</artifactId>
46
-
<version>2.7.0</version>
48
+
<version>2.8.0</version>
47
49
</dependency>
48
50
```
49
51
@@ -165,25 +167,25 @@ Given the json
165
167
}
166
168
```
167
169
168
-
| JsonPath (click link to try)| Result |
169
-
|:-------| :----- |
170
-
|<ahref="http://jsonpath.herokuapp.com/?path=$.store.book[*].author"target="_blank">$.store.book[*].author</a>| The authors of all books |
171
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..author"target="_blank">$..author</a>| All authors |
172
-
|<ahref="http://jsonpath.herokuapp.com/?path=$.store.*"target="_blank">$.store.*</a>| All things, both books and bicycles |
173
-
|<ahref="http://jsonpath.herokuapp.com/?path=$.store..price"target="_blank">$.store..price</a>| The price of everything |
174
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[2]"target="_blank">$..book[2]</a>| The third book |
175
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[-2]"target="_blank">$..book[-2]</a>| The second to last book |
176
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[0,1]"target="_blank">$..book[0,1]</a>| The first two books |
177
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[:2]"target="_blank">$..book[:2]</a>| All books from index 0 (inclusive) until index 2 (exclusive) |
178
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[1:2]"target="_blank">$..book[1:2]</a>| All books from index 1 (inclusive) until index 2 (exclusive) |
179
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[-2:]"target="_blank">$..book[-2:]</a>| Last two books |
180
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[2:]"target="_blank">$..book[2:]</a>| All books from index 2 (inclusive) to last |
181
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[?(@.isbn)]"target="_blank">$..book[?(@.isbn)]</a>| All books with an ISBN number |
182
-
|<ahref="http://jsonpath.herokuapp.com/?path=$.store.book[?(@.price < 10)]"target="_blank">$.store.book[?(@.price < 10)]</a>| All books in store cheaper than 10 |
183
-
|<ahref="http://jsonpath.herokuapp.com/?path=$..book[?(@.price <= $['expensive'])]"target="_blank">$..book[?(@.price <= $['expensive'])]</a>| All books in store that are not "expensive" |
0 commit comments