MyJSON
Power tools

Query (JSONPath + JSON Pointer)

Two query languages, side-by-side, live.

Query tab. Use the `[ JSONPath | Pointer ]` toggle to switch language.

JSONPath

The popular query language with recursive descent (`$..foo`), filter expressions (`$..[?(@.active==true)]`), slicing (`$..items[0:3]`), property-name selection (`$..*~`), and more. Each evaluation reports the matched count, the ms it took, and the matched paths.

JSON Pointer (RFC 6901)

A strict-spec single-value addressing language. `/foo/0` is the first element of `foo`, `/a~1b` references the key `a/b` (slash escaped as `~1`), the empty string is the whole document. Same role as JSONPath but always points to zero or one node.

Snippets

Each language has a snippet bar with common patterns. Click any one to load it into the query input.

Examples

Extract every URL from a payload

You want a quick list of every URL-shaped string field.

  1. Switch to JSONPath.
  2. Run `$..[?(@.startsWith && @.startsWith('http'))]`.
  3. Result pane shows all matches.

Reference a specific element with RFC 6901

Your OpenAPI doc uses `$ref` pointers and you want to resolve one.

  1. Switch to Pointer.
  2. Paste the OpenAPI doc.
  3. Enter `/components/schemas/User` — the User schema renders in the result.