Skip to content

JSONPath Tester: Query Your JSON Live

Type a JSONPath expression and see the matching values from your JSON as you type; nothing is uploaded.

Processed on your device. Nothing is uploadedHow to check

Try a sample file:

You can also paste JSON with Ctrl+V (⌘+V on a Mac).

Your file is opened in this browser tab only: it is never uploaded or stored anywhere, and it is gone when you close the tab.

  • JSONView and edit.json

Also works with CSV, TXT, Excel, Word, PDF, Image, and PowerPoint files

Paste text instead

Pasted text stays in this tab and is never sent anywhere.

A free JSONPath tester: open a .json file, drop it or paste the text, and the page opens with the query box ready, starting from $..*. Type an expression and the results update as you type, while the matching nodes are marked in the tree so you see where each one lives. The syntax is the common JSONPath one, filters such as $..book[?(@.price < 10)] included, run by a safe evaluator that never executes code from the query. Select a result to jump to its node in the tree, where Copy value copies it. Your JSON is queried in your browser and never uploaded.

Why use JSONPath tester

  • Results as you type

    Every change to the expression runs the query again after a short pause, so you can try ideas quickly.

  • Private and free

    Your JSON is queried by your own browser and never sent to a server. No account, no watermark.

  • Works offline

    After you have used it once, it keeps working without an internet connection.

How it works: test a JSONPath query

  1. Open or paste your JSON

    Choose a .json file, drop it on the page, paste the text into the box, or try one of the two samples.

  2. Type an expression

    The query box opens with $..*, which matches every value. Change it, for example to $.store.book[*].title, and the results follow.

  3. See the matches

    The first 50 matches are listed and the matches are marked in the tree, so you can check that the query picks what you meant.

  4. Go to a result

    Select a result to jump to its node in the tree; Copy value in the inspector copies that value.

What the JSONPath tester handles

  • Standard JSONPath syntax: $ for the root, . and [] for children, .. for any depth, * for every item, slices such as [0:3].
  • Filters such as $..book[?(@.price < 10)], run by a safe evaluator with no access to code or the page.
  • Results that update about 150 ms after you stop typing.
  • Matching nodes marked in the tree.
  • Select a result to jump to its node; big integer IDs keep every digit.

JSONPath tester: what it can't do

  • Filters are evaluated safely, so they cannot call arbitrary JavaScript; comparisons, && and || and the usual operators work.
  • Files up to 10 MB.
  • The query runs on valid JSON; a file with a syntax error shows where the error is first.
  • Queries are not saved between visits; keep the ones you use in your own notes.

Questions about JSONPath

Is my file uploaded?
No. Your JSON is read and queried by your browser, on your device, and is never sent anywhere. Pasted text and your queries stay in this tab.
What is JSONPath?
JSONPath is a short way to pick values out of a JSON document, the way XPath does for XML. $.store.book[0].title, for example, means the title of the first book in the store.
How do I filter by a value?
Use a filter in brackets: $..book[?(@.price < 10)] returns every book whose price is below 10. @ stands for the item being tested.
Can a filter run code?
No. Filters are read by a safe evaluator that understands comparisons and logic, not by JavaScript's eval, so a query cannot run arbitrary code in your browser.
Why does $..* return so many results?
$..* means every value at every depth, which is a good first look. Narrow it with key names, such as $..price, to get only what you need.
Can I keep my queries for next time?
No. Nothing is saved on the site and there is no history. Copy a query you want to reuse into your own notes.
How do I extract values from a JSON file with JSONPath?
Write a JSONPath expression that starts at the root $, such as $.store.book[*].title, and run it against the JSON: every matching value is returned. The OpenAnyDoc JSONPath tester runs it in your browser as you type, marks the matches in the tree and jumps to each one you select, without uploading the file.

Why it's private: your files never leave your browser

Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.

How we tell you about new features

Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.