A JSON Path tester lets you run a JSONPath expression against JSON data and see exactly which values it returns. JSONPath is a query language for JSON, similar to what XPath is for XML. Instead of searching through a large JSON file by hand, you write an expression like $.items[*].sku and get the matching values.
ToolsViewer's online JSONPath tester runs in your browser. Paste or import your JSON, enter an expression, and click Query to see the match count, the path of each match, and the matched values.
Step 1: Add your JSON
Paste JSON into the editor, import a .json or .txt file, fetch a public URL, or load the sample data.
Step 2: Enter a JSONPath expression
Type your expression in the sidebar, for example $.items[*].sku. Your expression is remembered in your browser, so it is there when you come back.
Step 3: Click Query
The tool runs the expression against your JSON. Click Query again whenever you change the data or the expression.
Step 4: Review and save the output
The output shows the number of matches, the path of each match, and the matched values. Copy the output, download it, or send your JSON to a related tool.
Extract data from API responses: Pull specific fields out of a large response without scrolling through it.
Debug JSONPath expressions: Check an expression here before using it in code, an API client, or an automation tool.
Find the path to a value: The output includes the path of each match, so you can see where a value sits in the structure.
Learn JSONPath: Try different expressions on the sample data and see what each one returns.
.json files.txt files containing JSONThe tester supports standard JSONPath syntax, including filters and wildcards. A few rarely used syntax variations may behave differently from other tools.
Explore related tools like JSON Validator, JSON Diff Checker, and JSON to CSV to validate, compare, and convert JSON online.