Text utilities

JSON Pointer Evaluator

Extract a value from JSON using an exact RFC 6901 pointer, with support for escaped property names.

Text stays in your browserCopy your result
Data workspace
Data workspace

Check delimiters and structure before downloading the output.

See the method

Your source data

Runs on your device

Your transformed data

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter json document, json pointer — or (root).
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Split the pointer on /, decode ~1 as / and ~0 as ~, then traverse only existing own properties. Array indices start at zero. This is JSON Pointer, not JSONPath.

A WORKED EXAMPLE

Using json document = {"users":[{"name":"Sam","active":true}]}, json pointer — or (root) = /users/0/name, the result is "Sam". Change these example inputs to match your task; use the method above to check each step.

Understanding your result

Escape a slash as ~1 and a tilde as ~0. The property a/b is selected by /a~1b. Use (root) in this interface for the whole document.

What to keep in mind

Maximum input length is 20,000 characters. Wildcards, filters and recursive descent are not part of JSON Pointer.

Common questions

How do I select a property containing a slash?

Escape a slash as ~1 and a tilde as ~0. The property a/b is selected by /a~1b. Use (root) in this interface for the whole document.

Can I use $.users[*]?

No. That is JSONPath syntax. Use /users/0 for the first item or /users for the complete array.

Methodology maintained by ClarityKit. How these tools are built and checked.