jfmt.dev

JSONPath Tester

Write a JSONPath expression, run it against the left-hand JSON, and read matched values on the right. Handy for APIs, logs, and config digging.

input.json

JSON formatter

Input0 B
Output · preview.json
{ }

Run a tool to see a polished result here

Live syncReady · processed locally in your browser
Local-only processing: your JSON never leaves this browser tab.

What you can query

Use paths like $.store.book[*].author to pull nested fields. Invalid JSON or a bad expression shows an error in the editor. Nothing is sent to a server.

Sample input on this page

The editor is prefilled with a small example for JSONPath Tester. JSONPath runs a query such as $.store.book[*].author against the document in this tab, without sending it to a server. Replace it with your own file; the sample and your payload stay in this tab.

{
  "store": {
    "book": [
      { "author": "Ada", "price": 8 },
      { "author": "Linus", "price": 12 }
    ]
  }
}

How to use this tool

  1. Paste JSON into the JSONPath Tester editor. The file stays in this browser tab and is not uploaded to jfmt.dev.
  2. Click Run. JSONPath runs a query such as $.store.book[*].author against the document in this tab, without sending it to a server.
  3. Copy the output, or continue with a related tool below. Related tools on this site include beautify, validate, minify, JSON to CSV, JSON to YAML and JSON to XML — all local.
  4. JFmt runs in a Web Worker in this tab. Do not paste production secrets if you share your screen.

When this page is the right choice

This dedicated JSONPath Tester URL matches that search intent; the homepage stays the general formatter. JSONPath runs a query such as $.store.book[*].author against the document in this tab, without sending it to a server. Related tools on this site include beautify, validate, minify, JSON to CSV, JSON to YAML and JSON to XML — all local. JFmt runs in a Web Worker in this tab. Do not paste production secrets if you share your screen. Read errors in the output pane instead of sending production payloads to another service.

FAQ

Which JSONPath dialect is this?

JFmt uses a practical subset aimed at everyday $.a.b[*].c queries, not every vendor extension.

Can I query arrays?

Yes. Use [*] or numeric indexes depending on what you need.

Does the document leave my browser?

No. The query runs locally.

Does this tool upload my file?

No. Parsing and conversion run in a Web Worker in this tab. jfmt.dev does not receive the payload.

Why is there a separate URL from the homepage?

So people searching for this operation land on a page that already selects it. JSONPath runs a query such as $.store.book[*].author against the document in this tab, without sending it to a server.