Input
Sample
Output

JSON Filter

0 matches
Type . or [ for suggestions from your JSON (↑ ↓ to choose, Tab to accept). Examples:$..title ·$.store.books[0] ·$.store.books[?(@.price < 10)].title ·$.store.books[?(@.isbn)]
Ln : 1 Col 0
Size: 0 B
A+
A-
Ad blocking? It's okay.

Please share to support us:



Ln : 1 Col 0
Size: 0 B
A+
A-
Ad blocking? It's okay. Please share to support us:

How to filter JSON with JSONPath


  1. Paste your JSON in the left editor, or press the sample button.
  2. Type a JSONPath expression in the box above the editors. The matches appear on the right as you type, with the number of matches next to the box. Type . or [ and the box suggests the keys that exist in your JSON, each with how many matches it would return; use the arrow keys and Tab to pick one.
  3. Or click any value in your JSON. A box next to it offers ready-made expressions, such as this one, the same field in all items or anywhere, each with its number of matches. The path also shows in the Input bar: click a part to use the path up to there, or click an index such as [1] to switch it to all items.
  4. Turn on Show paths to see where each match sits, for example $.store.books[2].title, then copy or download the result.

Filtering happens in your browser. Nothing you paste is uploaded to our server.

ExpressionSelects
$.store.books[0]the first book
$.store.books[-1]the last book
$.store.books[*].titleevery book's title
$..priceevery price, at any depth
$.store.books[0:2]the first two books
$.store.books[?(@.price < 10)]books cheaper than 10
$..books[?(@.isbn)]books that have an isbn
$..books[?(@.author =~ /tolkien/i)]books whose author matches a pattern

Filters accept == != < <= > >=, =~ /regex/, &&, || and !. Text values go in quotes: [?(@.category == 'fiction')].

Updated November 2026

FAQs


A short way to point at parts of a JSON document, like XPath for XML. $ is the whole document, .name a key, [0] an array item, * every item and .. any depth.

Use a filter in square brackets: $.items[?(@.status == 'active')] keeps items whose status is active. @ is the item being tested.

Turn on Show paths. Each match is shown with its full path, which you can use in code or in another expression. $..name finds a key at any depth.

It supports keys, indexes, negative indexes, slices, wildcards, recursive descent, unions and filters with comparisons, regex, && and ||. Script expressions and functions such as length() inside filters are not supported.

No. The JSON is parsed and filtered in your browser. Nothing you paste is sent to our server.