Skip to content

JSONPath playground

Runs only in your browser. Your data is not sent to our servers.

Paste JSON and write a JSONPath expression. The matches update as you type.

Examples
Matches

JSONPath in short

Click an example to try it on the example data.

SyntaxMeaningExample
$The root, the whole document.
.nameA field by name.
['name']A field by name, also when the name has spaces or dots.
[0]An item in a list. The first item is 0.
[-1:]The last item in a list.
[*]Every item in a list, or every field.
..Search at every level below.
[0,2]Several items by position.
[1:3]A range of items: from 1, up to but not including 3.
[?( )]A filter. Keeps the items where the condition is true.
@The current item inside a filter.

About this tool

JSONPath selects parts of a JSON document. Integration platforms use it to pick fields from API responses, for example in Boomi, MuleSoft, Workato, Azure Logic Apps and many REST connectors.

  • $ is the root, .name or ['name'] is a field, and [0] is the first item in a list.
  • [*] is every item, .. searches at every level, and [-1:] is the last item.
  • [?(@.total > 100)] is a filter. @ is the current item. Use ==, !=, <, >, && and ||.

Filters are evaluated safely without running your text as code. Platforms differ a little in which filter features they support, so test in the platform as well.

Found a problem?

Tell us what went wrong. You decide whether your own work is included.

Licences

This tool is built with these third-party libraries:

Report a problem

Show exactly what will be sent

The report goes to the ipaashub team and is stored with Cloudflare in Western Europe, and included work in the EU. Included work is deleted when the problem is fixed, and at the latest after 90 days. See Privacy.