← All tools

JSON Pointer (RFC 6901) Evaluator

Evaluate an RFC 6901 JSON Pointer against a JSON document and show the value it refers to. A pointer is a string of /-separated tokens naming object members or array indices — /foo/0/bar means doc["foo"][0]["bar"], the empty string "" means the whole document, and ~1/~0 escape / and ~ in keys. JSON Pointers are the addressing scheme used by JSON Patch (RFC 6902). Runs locally in your browser.

JSON document

Pointer

JSON Pointer

Result

—

An RFC 6901 JSON Pointer is either the empty string (the whole document) or a string beginning with /; each /-separated segment names an object member or, for arrays, a non-negative integer index (no leading zeros, in range). Escaping: ~1 → / and ~0 → ~ (applied in that order), so the key a/b is written /a~1b and m~n is /m~0n. The key that is the empty string is addressed by a lone /. The - token is only defined for JSON Patch add operations (the next array index); for plain evaluation it is treated as a member that arrays do not have. Distinct from JSONPath (a different expression syntax). Pairs with the JSON Formatter, JSON Diff, and JSON Schema Validator. Everything runs locally — nothing leaves your browser.