Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use JSON Path Tester online

  1. Paste the JSON. Type or paste the document.
  2. Type the path. Start with $.
  3. Read the matches. See the list and the count.
  4. 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?
The root of the document.
How do I search at any depth?
Use two dots, as in $..title.
How do I filter a list?
Use [?(@.key < value)] after the list.
What is returned when nothing matches?
An empty list.
Are script expressions supported?
No. Only simple filters are.
Does the JSON Path Tester keep a copy of my text?
No copy is made on a server; the JSON Path Tester runs in your browser.
Can I copy the JSON Path Tester result?
Yes. Copy the JSON Path Tester result, or press Use result as input and carry on with the new text.

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.

More tools in Text & Writing Tools →

Search tools