JSONPath Tester — Evaluate JSONPath Expressions Online

Paste JSON, enter a JSONPath expression, and inspect matches with paths and values. Switch between Classic and RFC 9535 dialects. All processing stays in your browser.

Loading…
JSONPath tester, query debugging playbook
Paste JSON, write a JSONPath expression, and inspect matches with paths and values. Load the bookstore sample via **Load sample** or the example chips. Switch dialects when your runtime expects Goessner Classic or RFC 9535.

Developer notes

Invalid JSON blocks evaluation — fix syntax first or use JSON repair. Evaluation runs live as you type (debounced); use the Examples & syntax panel for ready-made queries and cheat-sheet tokens. Dialect and result-view options reset on each visit — they are not saved in localStorage (aligned with other JSON tools). Classic mode uses jsonpath-plus with sandboxed filter evaluation. RFC 9535 mode follows IETF normalized paths — results may differ from Classic for edge cases. The Book count example (`.length`) is Classic-only — it is hidden in RFC 9535 mode. Documents above ~2 MiB use a longer debounce. Evaluation stops after 5 seconds or 1000 matches.

JSONPath options

Dialect
Classic (Goessner) matches most older libraries. RFC 9535 follows the IETF standard with normalized paths.
Result view
Show values only, paths only, or both. Useful when copying into scripts versus debugging structure.

When teams pick this route

Debug API responses before wiring JSONPath into production code. Learn filter and wildcard syntax on real payloads. Validate Kubernetes-style or Postman queries locally. Extract normalized paths for test fixtures.

When to use JSONPath vs JSON Tree Viewer

Use the JSON tree viewer to explore structure visually with text search. Use JSONPath when you need a reusable query language with wildcards, filters, slices, and normalized paths for scripts, tests, or Kubernetes-style selectors.

Worked examples

All authors from the bookstore sample

Sample JSON

{"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":8.95},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":12.99},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-29637-4","price":8.99},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":22.99}],"bicycle":{"color":"red","price":19.95}}}

Expected matches

Four author names from the book array. Load the library example via **Load sample** or the example chips.

Filter books by price

Sample JSON

{"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":8.95},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":12.99},{"category":"fiction","author":"Herman Melville","title":"Moby Dick","isbn":"0-553-29637-4","price":8.99},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":22.99}],"bicycle":{"color":"red","price":19.95}}}

Expected matches

Two books under $10. Inspect titles and authors in the match list.

Navigate related JSON tools

Browse the JSON tools hub. Validate syntax with the JSON validator and explore structure in the JSON tree viewer. Prettify with the JSON formatter or validate schemas with the JSON schema validator. Fix broken JSON via JSON repair.

JSONPath tester FAQ

Queries, dialects, and privacy

What is JSONPath?

JSONPath is a query language for JSON, similar in spirit to XPath for XML. It lets you select values with paths, wildcards, filters, and recursive descent.

Classic or RFC 9535: which should I use?

Choose Classic (Goessner) when matching older libraries like jsonpath-plus or Postman defaults. Choose RFC 9535 when targeting the IETF standard and normalized paths. Results can differ on edge cases, so test both if unsure.

What happens with invalid JSON?

Evaluation is blocked until the document parses. Use the JSON validator or repair tool, then return to test your expression.

Is my data uploaded?

No. Parsing and JSONPath evaluation run entirely in your browser. Nothing is sent to FastMinify servers.

JSONPath vs JSON Tree Viewer search?

Tree viewer search filters visible nodes by key or string value. JSONPath is a full query language you can copy into code, CI fixtures, or API tests.

Performance on large files?

Documents above ~2 MiB use a longer debounce (500 ms). Evaluation stops after 5 seconds or 1000 matches to keep the tab responsive.

Are dialect and result-view settings remembered?

No. Options reset to defaults on each visit. They are not stored in localStorage, consistent with other FastMinify JSON tools.

Validate, format, repair, compare and explore JSON in your browser, alongside the JSON minifier and converters.