Query nested JSON
Use root, dot notation, bracket notation, array indexes, wildcards, and recursive descent to reach deeply nested values.
JSON Tools
Use this JSONPath tester when you need to extract a specific value from a nested API response, config file, or sample payload. Paste valid JSON, enter a JSONPath expression, then review the matched values and the concrete paths returned by the query.
Use root, dot notation, bracket notation, array indexes, wildcards, and recursive descent to reach deeply nested values.
Evaluate filters such as @.price < 10 or @.active == true against arrays and objects.
The output includes match count, matched values, and paths, so you can copy or download the result for debugging notes.
JSONPath is a query syntax for selecting data from JSON, similar in spirit to using selectors for nested structures. The root symbol $ represents the whole JSON document. From there, dot notation such as $.order.id, bracket notation such as $["order"]["id"], array indexes, wildcards, recursive descent, and simple filters can select the values you need without writing custom traversal code.
$.Pull IDs, prices, flags, or names from nested API responses before writing application code.
Work out the exact path for Postman tests, integration checks, fixtures, and monitoring rules.
Use recursive descent or wildcards when the value exists at different depths or inside repeated records.
Query large JSON configuration files to confirm a field exists without manually expanding every branch.
{
"orders": [
{ "id": "ord_1", "total": 24, "paid": true },
{ "id": "ord_2", "total": 9, "paid": false }
]
}
$.orders[?(@.paid == true)].id
{
"matches": 1,
"values": [
"ord_1"
],
"paths": [
"$.orders[0].id"
]
}
This query filters the orders array to paid orders, then returns the matching id values and their source paths.
It evaluates a JSONPath expression against valid JSON and returns the matched values plus the concrete paths where those values were found.
No. JSONPath evaluation runs in your browser and pasted JSON is not submitted to devbruh.dev for querying. Still, avoid pasting production secrets, credentials, private tokens or sensitive customer data into any online tool unless you are comfortable with the environment you are using.
This tester supports the root symbol $, dot notation, bracket notation, array indexes, wildcards, recursive descent, and simple filters such as @.price < 10 or @.active == true.
No. It covers the common query syntax used for quick inspection, but array slices, unions, functions and the full RFC 9535 feature set are not supported on this page.
JSONPath is for writing an expression that selects matching values. A JSON tree viewer is better when you want to browse the whole structure visually before deciding which path to query.
Check that the JSON is valid, confirm the key names and array indexes in the JSON Tree Viewer, and make sure the expression starts with $.
JSONPath implementations do not all support the same syntax, so it helps to check both the standard and the evaluator you plan to use in code. These references are useful when you need exact behavior.