Developer Tools
JSONPath Tester
Test JSONPath expressions against any JSON in your browser. Filters, recursive descent, slices, regex match, and copy-ready results.
Examples (click to use)
Parsing and evaluation run entirely in your browser. The JSON you paste never leaves your device.
Quick syntax
- $ the document root
- .field or ['field'] child by name
- [0] array index, negative counts from the end
- [start:end:step] array slice
- * wildcard at one level
- .. recursive descent
- [?(@.price < 15)] filter expression
- ==, !=, <, <=, >, >= comparisons
- &&, ||, ! boolean logic
- @.title =~ /pat/i regex match
- 'x' in @.tags array membership
- [a, b, c] union of selectors
How to use
- Paste your JSON document into the input on the left, or click Load sample to start with a small bookstore example.
- Type a JSONPath expression in the field at the top, or click any example chip (All books, Cheap books, Recursive prices, and more) to insert one.
- Read the matches panel on the right. Each match shows its JSONPath, the resolved value, and per-match copy buttons.
- Switch the indent (Compact, 2 spaces, or 4 spaces) to control how matched values are pretty-printed.
- Use Copy values to grab every match as a JSON array, or Copy paths to grab a newline-separated list of paths to drop into code.
About this tool
JSONPath Tester runs JSONPath expressions against any JSON document directly in your browser, without sending anything to a server. Paste a JSON payload, type an expression, and the tool reports every matching value along with its canonical bracket-notation path. The evaluator implements the widely supported JSONPath subset shared by Stefan Goessner's original spec, the Java Jayway JsonPath library, and the recent IETF RFC 9535: $ for the root, .field or ['field'] for child access, [index] for array indexing (negative indices count from the end), [start:end:step] for slices, * for one-level wildcards, .. for recursive descent, and bracketed filter expressions [?(...)] that take JavaScript-like predicates with @ as the current item and $ as the document root. Filter predicates support comparisons (==, !=, <, <=, >, >=), boolean logic (&&, ||, !) with parentheses for grouping, regular expression matching with =~ /pattern/flags, array membership with the 'in' and 'nin' operators, inline literal arrays for membership tests, string and number literals, and bare path expressions that read as truthiness checks. Each match is shown as a separate card with its JSONPath, the resolved value pretty-printed at your chosen indent, copy buttons for the path and the value, and a top-of-panel summary that copies every value as a JSON array or every path as a newline-separated list. A built-in example library covers the moves you actually need in production: pull a single field from every array entry, slice the first N items, find every price anywhere in a nested document, filter by a numeric comparison, combine predicates with && and ||, run a regex against a string field, test array membership, and walk a wildcard at the top level. Useful for poking at REST API responses without writing throwaway code, validating JSONPath rules used by tools like AWS Step Functions, JMESPath migrations, Postman test scripts, OPA policy snippets, jq alternatives, GraphQL response audits, log triage, schema migration review, and any situation where you need to confirm a query works before pasting it into application code. Parsing, JSON validation, and JSONPath evaluation all run locally, so the API responses, fixture data, log payloads, and private documents you query here never leave your device.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
JSON Formatter
Format, minify, and validate JSON in your browser.
Open tool
DeveloperJSON Diff Checker
Structural compare with paths for added, removed, and changed values.
Open tool
DeveloperRegex Tester
Live regex testing with highlights, capture groups, and replacement preview.
Open tool
ConverterJSON to CSV Converter
Convert JSON arrays to CSV with nested flattening and Excel-friendly options.
Open tool
DeveloperJSON to TypeScript Converter
Generate TypeScript interfaces or types from any JSON value with full inference.
Open tool