JSONPath Tester

Run JSONPath queries against any JSON document. See matched nodes and their paths in real time.

Try: $..price, $.store.books[?(@.price < 20)].title, $.store.books[*].tags[0], $..*
Enter input above to see the result.

What is this for?

JSONPath is to JSON what XPath is to XML — a query language for plucking specific values out of a nested document without writing custom code. $.store.books[*].title says "give me every book title under store"; $..price says "every price anywhere in the document". This tool runs a query live against any JSON you paste, showing both the matched values and the paths they came from, so you can iterate on the query until it returns exactly what you want.

When to use it

Quick syntax reference

Common gotchas