JSONPath tester
Query JSON with JSONPath: wildcards, recursive search, slices and filters, with live results.
2 matches.
Missing a feature or found a bug in JSONPath tester? Tell me on X (@_andrewtran) or by email.
How to use JSONPath tester
- Paste your JSON in the input pane.
- Type a path such as $.store.book[*].title.
- Copy the matches, or tick the option to see where each one was found.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Which syntax is supported?
Dot and bracket keys, indexes, negative indexes, slices, unions, the * wildcard, the .. recursive search, and filters with comparisons joined by && and ||.
How do I write a filter?
Inside [?( )], with @ standing for the current item. For example $.items[?(@.price < 10 && @.stock)] keeps cheap items that are in stock.
Related tools
JSON diff
Compare two JSON documents by structure, ignoring key order and formatting.cURL converter
Turn a cURL command into fetch, Axios, Python, Go, PHP or HTTPie code.HTTP request code generator
Build a request from a form and get it as cURL, fetch, Axios, Python, Go, PHP or HTTPie code.Query string builder
Build a properly encoded ?key=value query string from a list of parameters.