Json Path
Json Path
We are using Json Path library from https://github.com/json-path/JsonPath
Json Path is used for Json response validation and output parameters
With Json Path, we can run queries on our json response
Json Path queries can be tested out at:
Json Path Examples
JsonPath (click link to try)
Result
The authors of all books
All authors
All things, both books and bicycles
The price of everything
The third book
The second to last book
The first two books
All books from index 0 (inclusive) until index 2 (exclusive)
All books from index 1 (inclusive) until index 2 (exclusive)
Last two books
Book number two from tail
All books with an ISBN number
All books in store cheaper than 10
All books in store that are not "expensive"
All books matching regex (ignore case)
Give me every thing
The number of books
Last updated
Was this helpful?