JSONPath Evaluator
Type a JSONPath and see what it matches in your JSON, live. More data tools
Test JSONPath queries online
Paste JSON, type a path in the box above the editors and the matches appear as you type. Supported syntax includes $.a.b, [0], [*], recursive ..key, slices [0:2] and filters such as [?(@.price < 10)].
Tick Show paths too to see the exact path of every match. Filters run in a safe mode, so scripts are not executed.
Features
- Live: the result updates while you type.
- Clear errors: the line, the reason and, where possible, a one-click fix.
- Open and drop files, copy or download the result, and share your input as a link.
- Send to another tool: pass the result straight to a related tool.
- Private: Everything runs in your browser. Your data is not uploaded to any server.
Related data tools
- JSON Validator: Paste JSON to check it. If something is wrong you see the line, the reason and a one-click fix. Nothing is uploaded.
- JSON Minifier: Paste JSON and get the smallest valid version. You see how many bytes you saved.
- JSON Stringify: Convert JSON to an escaped one-line string for your code, or turn an escaped string back into readable JSON.
- Sort JSON Keys: Put every object key in order, at all levels. Great before comparing or committing JSON.
- JSON Tree Viewer: See JSON as a tree you can expand, search and copy paths from.
- JSON Compare: Paste two JSON documents and see exactly what was added, removed or changed.
- All DataMint tools
Frequently asked questions
How do I select every value of a key?
Use the recursive operator: $..author.
How do I filter items?
Use a filter such as $.items[?(@.price > 10 && @.stock)].
Is my data private?
Everything runs in your browser. Your data is not uploaded to any server. You can even use the tool offline once the page has loaded.