JSONPath Tester
Test JSONPath expressions against your JSON, including filters, slices, unions, wildcards and recursive matches. Runs locally in your browser.
JSON document
Stays in your browserNo matches
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to jq Playground, JSON Visualizer or JSON Parser.
Online JSONPath Tester
Paste JSON, write a JSONPath expression, and inspect matching values immediately. All parsing and matching stays in your browser. This is useful for API debugging and test data inspection when you need to query nested JSON instead of reading the whole document.
What this tool does and who uses it
JSONPath is a query notation for pulling specific values out of a JSON tree without reading the whole document. Two concrete uses: a developer debugging an API response who wants to pull every user's email out of a deeply-nested payload in one expression instead of scrolling through it, and a test engineer writing an assertion against one field of a large fixture (like an order total three levels deep) without hardcoding the full path in code.
Worked example
Against {"users": [{"name": "Ada", "role": "admin"}, {"name": "Grace", "role": "editor"}]}, the expression $.users[*].name matches ["Ada", "Grace"] — the wildcard selects every item in the users array, then .name reads that property from each. The recursive form $..name finds the same two values by searching every level of the document for a name key, which matters once your JSON has name nested at inconsistent depths.
Common mistakes and edge cases
- Filters, slices and unions are supported. A filter that compares text needs quotes, for example
[?(@.role=='admin')]; without quotes the expression is invalid. - An expression that doesn't start with
$is rejected outright with an explicit error, rather than being treated as relative to some other root. - Zero matches and invalid JSON look different in the result panel — check which one you're seeing before assuming the expression itself is wrong.