Free · No sign-up · Runs in your browser

JSON Pointer Value Extractor

Extract a precise value from JSON using RFC 6901 pointers, including escaped slash and tilde keys and array indexes.

STEP 1

Start with your input

Edit the example or replace it with your own text.

STEP 2

Choose your options

These settings are optional. Keep the defaults to get started.

How to use JSON Pointer Value Extractor

  1. Paste a JSON document and enter a pointer such as /user/roles/0.
  2. Use ~1 for a slash inside a key and ~0 for a literal tilde.
  3. Extract the selected JSON value or inspect a missing-path error.

Address one location unambiguously

A pointer is a sequence of slash-delimited reference tokens. Array indexes are zero-based, while object keys are interpreted literally after pointer unescaping. The empty string selects the whole document, and a single slash selects an empty-string property name. The result remains valid JSON, including quotes around a selected string.

Do not confuse a pointer with a query language

This tool does not evaluate scripts, wildcards or filters. It accepts the plain pointer form, not a URI fragment beginning with #. Array leading zeros and the append dash token are rejected for reading. A pointer that is syntactically valid can still fail because its path is absent or passes through a primitive value.

Example input

{"user":{"name":"Ada","roles":["admin","editor"]},"a/b":{"m~n":42}}

Why are strings returned with quotes?

The output is a JSON value. Quotes distinguish a string from another JSON type and preserve an exact copyable representation.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools