Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsJSONPath TesterJSONPath Evaluator

JSONPath Evaluator

dev

Evaluate a JSONPath expression and get the matching values and their paths

Runs in your browser. Nothing you type is sent anywhere. Updated on 24 Oct 2026.

A JSONPath evaluator runs an expression against your JSON and lists every match with its normalized path. On the bundled bookstore document, $..book[[email protected]<10].title returns 2 titles, "Sayings of the Century" and "Moby Dick", at $['store']['book'][0]['title'] and $['store']['book'][2]['title']. Paste your own JSON and expression; matches are highlighted in the formatted document.

The example queries run against the bundled bookstore JSON
ExpressionSelectsMatches
$.store.book[*].authorthe authors of all books4
$..authorall authors, at any depth4
$.store..priceevery price in the store5
$..book[2]the third book1
$..book[-1]the last book1
$..book[:2]the first two books2
$..book[[email protected]]books with an ISBN2
$..book[[email protected]<10]books under 102
$..book[?match(@.author, '.*R.*')]authors containing R (match)2
$..*every node in the document27
Evaluated by this page’s RFC 9535 engine. Tap an example below to load it into the evaluator.
Next:
  • JMESPath Tester Run JMESPath queries on pasted JSON, as the AWS and Azure CLI --query does
  • JSON Formatter & Validator Format, validate, minify and sort JSON with exact error positions

How to evaluate a JSONPath filter expression

1

Paste the JSON response and press Format to lay it out.

2

Type a filter such as $..book[[email protected] < 10].title; a syntax error points at the exact position.

3

Open the Results tab to read the normalized path, such as $['store']['book'][0], for each match.

4

Click a path to copy it, or press First match on the Highlighted tab to jump to it.

How JSONPath Evaluator works

This JSONPath tester runs a query against JSON you paste and shows the result three ways: a list of matching values, the normalized path to each match, and highlights on the matches inside the formatted document. The result updates as you type, so you can build an expression one step at a time and see where it goes wrong.

The engine implements RFC 9535, the JSONPath standard published by the IETF in 2024. It supports the root $, dot and bracket child access, the recursive descent operator .., wildcards, array indexes including negative ones, slices such as [1:5:2] and [::-1], and filter expressions with ==, !=, <, <=, >, >=, &&, || and !. The five standard functions are included: length(), count(), value(), match() and search(), where the last two take regular expressions in the I-Regexp form. Queries that break the standard's type rules, such as comparing a query that can return several nodes, are rejected with a message saying why.

Many older libraries, including the original 2007 JSONPath and Jayway for Java, differ from the standard in small ways: some need parentheses around filters, as in [?(@.price < 10)], which still works here; some allow script expressions or extra functions, which RFC 9535 does not. If a query from a library's documentation is rejected, the message usually names the difference.

The rest of the article, and all 6 questions about JSONPath Tester, are on the JSONPath Tester page.

Frequently asked questions

How do I filter a JSON array by a value with JSONPath?

Use a filter selector: $.items[[email protected] == 'active'] keeps the items whose status is active. The @ stands for each item in turn. Combine conditions with && and ||, compare numbers with < and >, and write [email protected] on its own to keep items that have an email field at all.

What is the difference between . and .. in JSONPath?

A single dot takes a child of the current node, so $.store.book reads one level at a time. Two dots search at every depth, so $..price finds every price field anywhere in the document, including inside arrays. Recursive descent is convenient but can match more than intended on large responses.

How do I get the last element of an array in JSONPath?

Use a negative index: $.items[-1] is the last element and $.items[-2] the one before it. A slice with a negative start also works, so $.items[-3:] returns the last three. Indexes past the end simply return nothing rather than an error.

Can I use regular expressions in a JSONPath filter?

Yes, with match() and search(). match(@.code, 'A[0-9]+') needs the whole string to fit the pattern, while search(@.name, 'smith') finds it anywhere. Patterns use I-Regexp, a portable subset of regular expressions, so shortcuts such as \d and lookaheads are not accepted.

Still stuck? Ask about JSONPath Tester and anybody who knows can answer. No account needed.

More ways to use JSONPath Tester

  • JSONPath TesterRun RFC 9535 JSONPath queries on pasted JSON and see every match highlighted

On the related tools: Readability Checker – Flesch reading ease and grade level, with what to change · npm Package Name Checker – Check whether a name is allowed on npm: capitals, scopes, length, core module names.

Related tools

All developer tools
package.json ValidatorCheck a package.json the way npm reads it: name, version, license, dependencies and syntaxTitle Tag and Meta Description CheckerTitle and meta description length in characters and pixels, and where Google cuts themTest Credit Card NumbersSandbox card numbers from Stripe and Razorpay with expiry and CVV, and a Luhn checkerRegex TesterTest JavaScript regular expressions with live highlighting and a plain-English explanationDiff CheckerCompare two texts side by side and see every added and removed lineJSON DiffCompare two JSON documents and list every added, removed and changed valueOpen Graph PreviewPaste a page and see the share card for Facebook, LinkedIn, X, WhatsApp and SlackKeyword Density and ReadabilityWord and phrase counts, densities, reading time and a Flesch readability score
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)