JSONPath Tester
Test JSONPath expressions against your JSON data — entirely in the browser. Supports $ (root), $.foo.bar, $.foo[0], $.foo[*] (wildcard), $..foo (recursive descent) and basic @.path filters like $.books[?(@.price > 30)].
How to use
- 1
Paste your JSON
Drop any JSON — an API response, a fixture, a config file — into the left-hand editor. If the JSON is invalid, you'll see the parse error with a line number.
- 2
Enter a JSONPath expression
Type a JSONPath starting with $. Use . for child access, [N] for array index, [*] for wildcard, .. for recursive descent, and [?(...)] for filters.
- 3
Run and inspect matches
Click Run. All matched values are collected and pretty-printed as a JSON array on the right. The match count and byte size are shown below.
- 4
Try the sample paths
Click any of the sample path chips to load it into the input — handy for exploring the supported syntax.
Common use cases
- Verify a JSONPath before using it in jq, Jayway, jsonpath-plus, AWS Step Paths or Kubernetes selectors.
- Extract every occurrence of a key from a deeply nested API response (recursive descent).
- Filter an array of objects by a numeric or string field without writing a script.
- Teach and learn JSONPath syntax interactively, with immediate feedback on each expression.
Limitations
- Supported subset:
$,@,.name,[N],[*],..name,[?(...)]with@.pathtruthy checks and@.path OP valuecomparisons (OP ∈==, !=, >, >=, <, <=). - Not supported: script expressions (
[?(...)]with arbitrary JS), slice notation[1:3], comma operators, parent references, regex filters and the in-operator[?(@.foo in [...])]. - Inputs larger than 1 MB are rejected to keep the tab responsive.
- Recursive descent
$..foowalks every descendant of every current node — on very deep JSON this can be slow.
Frequently asked questions
Related tools
View allJSON Formatter
Beautify and indent JSON with 2 or 4 spaces.
JSON Validator
Validate JSON syntax and get helpful error messages.
Regex Tester
Test JavaScript regular expressions against sample text.
JSON to TypeScript
Convert JSON to TypeScript interfaces.