Run JSONPath queries on your JSON live, with filters, paths and a syntax guide. Runs entirely in your browser, so nothing is uploaded.
6 answers to what people ask most about the JSONPath Tester.
JSONPath is a query language for JSON, like XPath for XML. $ is the root, a dot or [ ] selects children, .. searches at any depth and [?( )] filters items.
Use a filter expression such as $..book[?(@.price < 10)]. @ is the current item, and you can combine conditions with && and ||.
$.* returns only the direct children of the root. $..* returns every value at every depth.
Use a slice with a negative start, such as $..book[-1:]. [:2] returns the first two items and [0,2] picks items by index.
Use @root, for example $..book[?(@.price > @root.expensive)]. Plain $ isn't available inside filters in this engine.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue