Skip to content

Menu

JSON Path Evaluator

Test JSONPath expressions against JSON data with live result highlighting

Runs entirely in your browserJSON ToolsFree, no sign-up
Loading tool

01What is JSON Path Evaluator?

JSON Path Evaluator runs a JSONPath expression against your JSON as you type and lists every match with its normalized path, such as $['store']['book'][0]. It's handy when you need to know exactly which nodes a query picks before you put it in a test, a config file or an ETL rule. The syntax follows RFC 9535, the IETF JSONPath standard, filters included. You get the root $, member names in dot form (.store) or bracket form (['first name'], with the RFC's string escapes), and wildcards written .* or [*]. Array indexes can be negative, so [-1] is the last element. Slices use the RFC's start:end:step rules, which means [1:3], [::2] and [::-1] all behave as the standard says. A bracket can hold a union of several selectors, like [0,2] or ['title','price']. The descendant segment (..price, ..*, ..[0]) searches every level below the current node. Results stay in document order, and a descendant segment visits a node before its children. Matching is strict in the RFC's sense. A member name never matches on an array, so $.users.length returns nothing rather than a count. A key that doesn't exist simply selects nothing, which is not an error. Here's a worked case. Take a users array holding Ann, Bo and Cy. The path $.users[::-1].name returns "Cy", "Bo", "Ann", with paths $['users'][2]['name'] down to $['users'][0]['name']. Change it to $.users[-2:].name and you get just Bo and Cy, the last two. Filters keep the items that pass a test. In $.users[[email protected] > 30], @ is the user being tested and $ would be the whole document. You can compare with == != < <= > >=, join tests with && and ||, negate with ! and group with parentheses. A bare query such as [[email protected]] is an existence test, so it passes even when tags holds null. Comparisons follow the RFC: a missing key never equals 0 or null, and < only works between two numbers or two strings. length() counts characters, items or keys. count() counts the nodes a query finds, and value() turns a one-node result into a value. match() and search() test a string against an I-Regexp, the small regex dialect from RFC 9485. match() must cover the whole string, while search() can match anywhere in it. A pattern outside that dialect, such as \d, makes the test false. Now the limits. A filter that breaks the RFC's type rules is rejected with an error, as the standard requires. For example, length(@.*) fails because @.* can return many nodes. Index and slice numbers must be plain integers inside JavaScript's safe range. The JSON you paste is parsed by the page itself and never leaves your tab. You can copy one match or the full result set as JSON.

API testers and data engineers who want to see exactly which nodes an RFC 9535 JSONPath selects before putting it into an assertion or extraction rule. The tool runs entirely in your browser, so your data never leaves your device.

02How to use JSON Path Evaluator

  1. Paste your document into the JSON Data panel, or keep the sample bookstore data.
  2. Type an expression into the JSONPath Expression box, for example $.store.book[*].author.
  3. Or open Common Paths and pick one of the ready-made expressions.
  4. Read each numbered match and its normalized path in the Results panel.
  5. Copy a single match, or use Copy at the top of Results for the whole set.

03Worked examples

Input: {"users":[{"name":"Ann","age":31,"tags":["admin"]},{"name":"Bo","age":24},{"name":"Cy","age":40,"tags":[]}],"first-name":"x"} with $.users[*].name
Result: ["Ann", "Bo", "Cy"]
Paths shown: $['users'][0]['name'], $['users'][1]['name'], $['users'][2]['name'].
Input: Same JSON, $.users[::-1].name
Result: ["Cy", "Bo", "Ann"]
A step of -1 walks the array backwards.
Input: Same JSON, $..tags
Result: [["admin"], []]
Bo has no tags key, so only two matches come back. Cy's empty array still counts.
Input: Same JSON, $['first-name']
Result: ["x"]
A key with a hyphen needs quoted bracket notation.
Input: Same JSON, $.users[0,2].age
Result: [31, 40]
A comma inside brackets is a union: indexes 0 and 2, in that order.
Input: Same JSON, $.users[[email protected]>30].name
Result: ["Ann", "Cy"]
@ is each user in turn. Bo is 24, so he drops out.
Input: Same JSON, $.users[?length(@.tags) == 0].name
Result: ["Cy"]
Bo has no tags key, so length() gives no value at all, and that never equals 0.

04Common use cases

  • Checking that $.data[*].id picks every record before using it in a Postman or REST Assured assertion
  • Testing a selector for an ETL rule or a log-shipping config against a real sample payload
  • Pulling every price or id out of a deeply nested API response with a descendant query like $..price
  • Seeing how negative slices and steps such as [::-1] behave under RFC 9535 before trusting a library
  • Confirming that a key with a hyphen or space needs bracket notation like ['first-name']
  • Comparing union results such as [0,2]['title','price'] to what a test framework returns
  • Trying a filter like $.items[[email protected] == 0 && @.active] on real data before it goes into an alert rule

05Tips

  • The normalized path shown under each match is valid JSONPath too, so you can paste it back in to select that one node.
  • To find keys that hold null, write [[email protected] == null]. The existence test [[email protected]] also passes for keys that hold null.
  • $.list.length returns no matches by design. In RFC 9535 a name selector only applies to objects.
  • Libraries written before RFC 9535, such as older Jayway or jsonpath-plus versions, differ on negative steps and filters. Check results in the one you'll actually run.

06Related concepts

JSONPath RFC 9535, jq, XPath, JSON Pointer.

Frequently Asked Questions

What is JSON Path Evaluator?

JSON Path Evaluator is a free, browser-based developer tool on AIDToolStack. Test JSONPath expressions against JSON data with live result highlighting It requires no installation or sign-up and works entirely in your browser.

Is JSON Path Evaluator free to use?

Yes. No sign-up, no fees and no usage cap.

Does JSON Path Evaluator store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe