Skip to content
jsonblocks

Find and copy any JSON path

Paste JSON and browse concrete paths in the document as a searchable list. Click any row to copy its JSONPath, or copy a ready-made jq query - free, in your browser.

JSON input

Valid JSON

Paths

9 paths

Path syntax matches the block viewer exactly. Everything runs locally; nothing is uploaded.

How to find a JSON path with jsonblocks

  1. Paste your JSON into the input panel or load the sample.

  2. Browse the path list or type to filter by key or value.

  3. Click the copy button on any row to copy its JSONPath.

  4. Select a row to get the equivalent jq query for your terminal.

Frequently asked questions

Why do I see only 500 paths?

The list displays the first 500 paths to keep rendering bounded, while reporting the full path count. Filtering applies to displayed paths. Use the main viewer to search the full document.

What is a JSON path?

A JSON path is an address for one value inside a document, like $.owner.name or $.tags[0]. Paths are used in JSONPath queries, jq filters, config references, and bug reports to point at exact values.

What path syntax does this tool copy?

Dollar-root JSONPath: objects use dot notation ($.user.name) and arrays use brackets ($.users[0].name). The jq panel converts the same path into a jq filter you can paste into your terminal.

How do I use a copied path in jq?

Select the row and copy the jq query shown above the list, for example jq '.owner.name' data.json. It reads the same value from the file that the row shows.

Why do some values show a preview instead of full text?

Long strings are truncated in the list to keep it scannable. Containers show their size instead, like Object with 4 keys. The copied path always addresses the full value.

Is there a limit on document size?

The list shows the first 500 paths with a note when a document has more. Narrow large documents with the search filter, or explore them branch by branch in the block visualizer.

Do paths work with special characters in keys?

Keys with dots, spaces, brackets, or quotes use escaped bracket notation, such as $["odd.key"]. The jq snippet uses POSIX shell quoting. This is a concrete path list, not a general JSONPath query evaluator.