Skip to content

Commit edf52aa

Browse files
committed
Release and fix docs
1 parent 4a59845 commit edf52aa

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

Diff for: README.md

+22-20
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Jayway JsonPath is a Java port of [Stefan Goessner JsonPath implementation](http
1111

1212
News
1313
----
14+
22 Mar 2023 - Released JsonPath 2.8.0
15+
1416
30 Jan 2022 - Released JsonPath 2.7.0
1517

1618
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
4345
<dependency>
4446
<groupId>com.jayway.jsonpath</groupId>
4547
<artifactId>json-path</artifactId>
46-
<version>2.7.0</version>
48+
<version>2.8.0</version>
4749
</dependency>
4850
```
4951

@@ -165,25 +167,25 @@ Given the json
165167
}
166168
```
167169

168-
| JsonPath (click link to try)| Result |
169-
| :------- | :----- |
170-
| <a href="http://jsonpath.herokuapp.com/?path=$.store.book[*].author" target="_blank">$.store.book[*].author</a>| The authors of all books |
171-
| <a href="http://jsonpath.herokuapp.com/?path=$..author" target="_blank">$..author</a> | All authors |
172-
| <a href="http://jsonpath.herokuapp.com/?path=$.store.*" target="_blank">$.store.*</a> | All things, both books and bicycles |
173-
| <a href="http://jsonpath.herokuapp.com/?path=$.store..price" target="_blank">$.store..price</a> | The price of everything |
174-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[2]" target="_blank">$..book[2]</a> | The third book |
175-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[-2]" target="_blank">$..book[-2]</a> | The second to last book |
176-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[0,1]" target="_blank">$..book[0,1]</a> | The first two books |
177-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[:2]" target="_blank">$..book[:2]</a> | All books from index 0 (inclusive) until index 2 (exclusive) |
178-
| <a href="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-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[-2:]" target="_blank">$..book[-2:]</a> | Last two books |
180-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[2:]" target="_blank">$..book[2:]</a> | All books from index 2 (inclusive) to last |
181-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[?(@.isbn)]" target="_blank">$..book[?(@.isbn)]</a> | All books with an ISBN number |
182-
| <a href="http://jsonpath.herokuapp.com/?path=$.store.book[?(@.price < 10)]" target="_blank">$.store.book[?(@.price < 10)]</a> | All books in store cheaper than 10 |
183-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[?(@.price <= $['expensive'])]" target="_blank">$..book[?(@.price <= $['expensive'])]</a> | All books in store that are not "expensive" |
184-
| <a href="http://jsonpath.herokuapp.com/?path=$..book[?(@.author =~ /.*REES/i)]" target="_blank">$..book[?(@.author =~ /.*REES/i)]</a> | All books matching regex (ignore case) |
185-
| <a href="http://jsonpath.herokuapp.com/?path=$..*" target="_blank">$..*</a> | Give me every thing
186-
| <a href="http://jsonpath.herokuapp.com/?path=$..book.length()" target="_blank">$..book.length()</a> | The number of books |
170+
| JsonPath | Result |
171+
|:-------------------------------------------------------------------| :----- |
172+
| $.store.book[*].author | The authors of all books |
173+
| $..author | All authors |
174+
| $.store.* | All things, both books and bicycles |
175+
| $.store..price | The price of everything |
176+
| $..book[2] | The third book |
177+
| $..book[-2] | The second to last book |
178+
| $..book[0,1] | The first two books |
179+
| $..book[:2] | All books from index 0 (inclusive) until index 2 (exclusive) |
180+
| $..book[1:2] | All books from index 1 (inclusive) until index 2 (exclusive) |
181+
| $..book[-2:] | Last two books |
182+
| $..book[2:] | All books from index 2 (inclusive) to last |
183+
| $..book[?(@.isbn)] | All books with an ISBN number |
184+
| $.store.book[?(@.price < 10)] | All books in store cheaper than 10 |
185+
| $..book[?(@.price <= $['expensive'])] | All books in store that are not "expensive" |
186+
| $..book[?(@.author =~ /.*REES/i)] | All books matching regex (ignore case) |
187+
| $..* | Give me every thing
188+
| $..book.length() | The number of books |
187189

188190
Reading a Document
189191
------------------

Diff for: build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ext {
4545

4646
]
4747
]
48-
snapshotVersion = true
48+
snapshotVersion = false
4949
}
5050

5151
allprojects {
@@ -122,7 +122,7 @@ subprojects {
122122

123123
pom {
124124
name = jar.baseName
125-
description = project.description
125+
description = 'A library to query and verify JSON'
126126
url = 'https://github.com/jayway/JsonPath'
127127

128128
licenses {

0 commit comments

Comments
 (0)