Json Path

Json Path

Json Path Examples

JsonPath (click link to try)



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

$.store.book[?(@.price < 10)]

All books in store cheaper than 10

$..book[?(@.price <= $['expensive'])]

All books in store that are not "expensive"

$..book[?(@.author =~ /.*REES/i)]

All books matching regex (ignore case)


Give me every thing


The number of books