...
...
...
...
...
...
Alert | ||||
---|---|---|---|---|
| ||||
We're making some changes to this app's pricing in the next release (v3.0.2). Find out more about this change as well as FAQs in our documentation. |
Below are some samples of Jsonpath.
...
jsonpath | result |
---|---|
store.size() | 4 |
store[0].title | Book One |
store[2].title | Book Three |
store.findAll { it.price > 50 }.title[0] | Book Four |
store.find { it.name == 'Book Three' }.price | 45 |
store.collect { it.price }.sum() | 158 (which is 23 + 34 + 45 + 56) |
Note |
---|
Note that the JsonPath implementation uses Groovy's GPath syntax and is not to be confused with Jayway's JsonPath implementation. |