JSONPath Tester
Test JSONPath expressions against JSON data.Runs in this tab.⌘ ↵ runs it
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout JSONPath Tester
Free online JSONPath tester. Write JSONPath queries and see matched results from your JSON data in real time. It runs in your browser. Nothing is sent to a server.
Questions
What is JSONPath?
JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract specific values from complex JSON structures using expressions like $.store.book[0].title.
What JSONPath syntax is supported?
Standard JSONPath syntax including dot notation ($.key), bracket notation ($["key"]), wildcards (*), array slicing ([0:2]), and filter expressions ([?(@.price < 10)]).
How do I select all items in a JSON array?
Use $.arrayName[*] to select all elements, or $.arrayName[*].fieldName to extract a specific field from every object in the array.
JSONPath vs jq: what is the difference?
JSONPath is a query language used in many programming libraries, while jq is a standalone command-line tool with its own syntax. Both extract data from JSON but jq is more powerful for transformations.
How do I filter JSON array items by a property value?
Use a filter expression like $.items[?(@.status=="active")] to select only array elements where the status field equals "active". Filter expressions support comparison operators and logical AND/OR.
Does the JSONPath tester work offline?
Yes, the JSONPath evaluation runs entirely in your browser. Your JSON data and queries never leave your device.
Comments
More in JSON Tools
- JSON Formatter
- JSON Validator
- JSON Minifier
- JSON to YAML Converter
- JSON to CSV Converter
- CSV to JSON Converter
- YAML to JSON Converter
- JSON to XML Converter
Comments