JSONPath, JSON to TypeScript and JSON Schema

Paste a JSON document and query it with JSONPath expressions (filters, slices, recursive search): see the values found and the path of each. The other tabs turn the same JSON into TypeScript interfaces and a JSON Schema.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

JSON document

JSONPath expression

Try:

Supported syntax

  • $ root
  • .a['a b'] property
  • [0][-1] index (also from the end)
  • [1:5:2] slice: from, to, step
  • *[*] all elements
  • ..a search at any depth
  • [?(@.x > 1 && @.t == 'a')] filter with comparisons and && || !
  • =~ /re/ilength()count()match()search() regex and functions in filters

Safe evaluation

Expressions are parsed and evaluated by an interpreter written for this tool (RFC 9535 plus the most common Goessner extensions): eval is never used. Script expressions such as [(@.length-1)] are not supported: use [-1].

Where the data goes

Everything happens on this page: the JSON is not sent or saved. The share link holds the JSON (up to 100,000 characters) in the address, which never reaches the server.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain