JSONPath online tester
Test JSONPath queries against your JSON and see the matches as you type. Free, no sign-up, and everything runs in your browser.
Starts with $. Results update as you type.
Result
Path finder
Every path in your JSON. Search for a key or value, then select a row to use its path as the query.
What this JSONPath tester does
JSONPath is a short query language for picking values out of a JSON document, a little like a file path for data. It started as a 2007 proposal by Stefan Gössner1 and became an IETF standard, RFC 9535, in February 2024.2
Paste your JSON, type a query that starts with $, and the matches show at once. Switch the result to Paths to see where each match lives, written as a normalized path such as $['store']['book'][0], which is the exact form the standard defines.2 The Path finder lists every path in your document, so you can search for a key or value and select it instead of writing the query by hand. Nothing you paste leaves your browser.
How to write a JSONPath query
Every query starts at the root, $, and then steps down into the data:
Inside a filter, @ is the item being tested. You can combine tests with &&, || and !, compare with ==, !=, <, <=, > and >=, and use the five functions the standard defines:2 length(), count(), match(), search() and value(). For example, $.store.book[?match(@.author, 'R.*')] keeps books whose author starts with R, and $.store.book[?length(@.tags) > 0] keeps books that have at least one tag.
Tips when a query returns nothing
- Check the casing.
$.Storeand$.storeare different keys. - Use brackets for unusual keys:
$['first-name'], not$.first-name. - A filter tests the items inside an array, so write
$.book[[email protected] < 20], not$.book[[email protected] < 20]. - A missing key is not the same as
null.[[email protected]]keeps items that have the key, even when its value isnull.
More free tools
ASCII table and converter
ASCII table with all 128 codes in decimal, hex, octal and binary, plus a converter from text to ASCII codes and back. Runs in your browser.
Keycode finder
Keycode finder that runs in your browser. Press any key to see its JavaScript keyCode, key, code and location, and copy a ready keydown handler.
Image converter
Image converter that runs in your browser. Convert PNG, JPG, WebP, AVIF, GIF and SVG files in bulk, with quality and resize options. No uploads.
HTML to Markdown converter
HTML to Markdown converter that runs in your browser. Paste HTML or rich text from a web page, Google Docs or Word and get clean GitHub Markdown.
Test credit card numbers generator
Test credit card numbers for form and checkout tests, made in your browser. Generate valid-format numbers for 7 card networks and check any number.
PX to REM converter
PX to REM converter that runs in your browser. Convert px to rem and rem to px at any root font size, or convert a whole stylesheet at once.
Frequently asked questions
Sources
Stefan Gössner: JSONPath, XPath for JSON (2007)
IETF: RFC 9535, JSONPath: Query Expressions for JSON (2024)