JSON Pointer resolver

Find a JSON value by an escaped pointer while retaining numeric token spellings.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

No. An empty pointer selects the whole document; / selects an object key that is an empty string. Array indices cannot have leading 0s.

The pointer /items/0/name selects name at index 0 of items and returns "Pen".

Split paths at /; decode ~1 as / and ~0 as ~. An empty path selects the document.

Frequently asked questions

Are an empty pointer and / equivalent?

No. An empty pointer selects the whole document; / selects an object key that is an empty string. Array indices cannot have leading 0s.

How are / and ~ inside keys addressed?

Split paths at /; decode ~1 as / and ~0 as ~. An empty path selects the document.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors