JSON Pointer Resolver

Resolve a plain RFC 6901 pointer to an existing JSON value, including escaped keys and zero-based array elements.

Your JSON stays in this browser. Input is not uploaded.

Up to 200,000 input characters, 20,000 values and 64 nesting levels. Duplicate keys, unsafe integers, nonfinite numbers and nonzero numbers that underflow to zero are rejected. Decimals use JavaScript floating-point precision; formatting and numeric spelling may change.

Leave the pointer empty for the root. Use ~1 for / and ~0 for ~ in keys. Plain pointers only: URI fragments, JSONPath, wildcards and the append token - are not supported.

Find one value with a JSON Pointer

A JSON Pointer identifies a single value in a JSON document. Paste the document, enter a plain pointer, and choose Resolve pointer. The result is valid JSON: selecting a string includes its quotes, selecting null prints null, and selecting an object or array returns the complete selected subtree. An empty pointer selects the entire document, even if the root is a scalar.

Example: a name inside an array

Load the example and resolve /users/0/name. The output is "Ada". Change the pointer to /a~1b to select the key containing a slash and obtain 7. /m~0n selects the key containing a tilde and returns true. A single slash / selects an empty-string object key; it does not select the root.

Escaping and resolution rules

The implementation follows the plain string form of RFC 6901. Escape a slash within a key as ~1 and a tilde as ~0. Decoding happens in that order, so ~01 represents the literal key text ~1. Matching is exact and case-sensitive, without Unicode normalization. Only existing own properties are read; inherited names cannot resolve accidentally.

Array positions start at zero and cannot have leading zeros. /users/01, an out-of-range index, or the append marker - produces an error. An object may still have a literal key named 01 or -. Continuing through a scalar also fails. The tool accepts plain pointers only, not #/users/0 URI fragments, a quoted JSON string containing a pointer, JSONPath expressions, wildcards or relative pointers.

Ambiguity and input limits

Duplicate keys are rejected throughout the input, including repeated keys written with different JSON escape spellings. The reader accepts at most 200,000 characters, 20,000 values and 64 nesting levels; pointers have a 10,000-character limit. Nonfinite and unsafe integer numbers are rejected. Other decimals use JavaScript floating-point precision, so numeric spelling, negative zero and whitespace may normalize. Store precision-sensitive identifiers or decimal text as strings before using this tool.

Processing remains in the browser. Editing either input clears the previous result and download link. If a pointer fails, first resolve its parent, inspect the available keys and confirm the array length. Use JSON Key Sorter to organize the document or JSON Value Type Analyzer to inspect its structure before extracting values.

Nonzero numbers too small to remain nonzero in JavaScript, such as 1e-400, are rejected rather than silently becoming zero.