JSON Path Tester
This tool tests JSONPath expressions against your JSON. It supports keys, indexes, wildcards, slices, recursive search and simple filters, and lists every match.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use JSON Path Tester online
- Paste the JSON. Type or paste the document.
- Type the path. Start with $.
- Read the matches. See the list and the count.
- Adjust and retry. Change the path to refine the result.
Why use this free JSON Path Tester
- Keys, indexes and slices
- Wildcards and recursive search
- Simple filters
- Match count
- Clear errors for bad paths
- Share by link
What JSONPath is
JSONPath is a way to pick values out of a JSON document with a short expression, in the way XPath does for XML. The $ stands for the whole document, a dot picks a key, and square brackets pick an item of a list. It is used in tests, tools and API clients.
What the tool supports
It supports $.key, ["key"], [n] and [-n] for the last items, [] and . for everything at one level, .. for a search at any depth, slices such as [0:2], unions such as ["a","b"], and filters such as [?(@.price < 10)] with the comparisons ==, !=, <, <=, > and >=. A filter with only @.key tests that the key exists.
A worked example
The sample document has a store with a list of three books. The expression $.store.book[?(@.price < 10)].title picks the title of every book that costs less than 10, and the tool finds 1 match: [ "A" ]. Try $..price to get every price at any depth.
Reading the result
The matches are shown as a JSON list, with the number of matches. An expression that matches nothing gives an empty list and not an error. If the expression itself is wrong, the tool says what it could not read, such as a bracket that is not closed or a path that does not start with $.
Differences between tools
JSONPath has no single strict standard in everyday use, and libraries differ in details such as filters and scripts. This tool covers the common core. A path that works here is likely to work elsewhere, but test it in the tool you will use, and keep to simple filters.
Using the tool
As you type in the JSON Path Tester, the result appears at once. Open a text file into the box, or drop one on it.
JSON Path Tester: frequently asked questions
What does $ mean?
How do I search at any depth?
How do I filter a list?
What is returned when nothing matches?
Are script expressions supported?
Does the JSON Path Tester keep a copy of my text?
Can I copy the JSON Path Tester result?
Related searches for JSON Path Tester
- JSON Path Tester online
- free JSON Path Tester
- JSON Path Tester online free
- JSON Path Tester for mobile
- JSON Path Tester without sign up
- JSON Path Tester – Text & Writing Tools
JSON Path Tester is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.