Developer Tools
JSON Pointer Tester
Evaluate JSON Pointer (RFC 6901) strings against any JSON document in your browser. Test multiple pointers, see resolved values, and URI fragments.
JSON Pointer tester
Samples
Try a real-world pointer set
Valid JSON. Root is Object.
Use the empty string to point at the root document. The URI Fragment form (starting with #) is supported and percent-decoded automatically. Inside a token, encode ~ as ~0 and / as ~1.
Summary
6 pointers evaluated
- Object
/components/schemas/User
object with 3 keys
{ "type": "object", "required": [ "id", "email" ], "properties": { "id": { "type": "string", "format": "uuid" }, "email": { "type": "string", "format": "email" }, "roles": { "type": "array", "items": { "type": "string" } } } }Resolution
- Startat root
- /componentstoObjectobject with 1 key
- /schemastoObjectobject with 1 key
- /UsertoObjectobject with 3 keys
- Object
/components/schemas/User/properties/email
object with 2 keys
{ "type": "string", "format": "email" }Resolution
- Startat root
- /componentstoObjectobject with 1 key
- /schemastoObjectobject with 1 key
- /UsertoObjectobject with 3 keys
- /propertiestoObjectobject with 3 keys
- /emailtoObjectobject with 2 keys
- String
/components/schemas/User/properties/email/format
"email"
"email"
Resolution
- Startat root
- /componentstoObjectobject with 1 key
- /schemastoObjectobject with 1 key
- /UsertoObjectobject with 3 keys
- /propertiestoObjectobject with 3 keys
- /emailtoObjectobject with 2 keys
- /formattoString"email"
- String
/components/schemas/User/required/0
"id"
"id"
Resolution
- Startat root
- /componentstoObjectobject with 1 key
- /schemastoObjectobject with 1 key
- /UsertoObjectobject with 3 keys
- /requiredtoArrayarray of 2 items
- /0toString"id"
- String
/components/schemas/User/properties/roles/items/type
"string"
"string"
Resolution
- Startat root
- /componentstoObjectobject with 1 key
- /schemastoObjectobject with 1 key
- /UsertoObjectobject with 3 keys
- /propertiestoObjectobject with 3 keys
- /rolestoObjectobject with 2 keys
- /itemstoObjectobject with 1 key
- /typetoString"string"
Line 6 could not be resolved
/components/schemas/Missing
Key "Missing" not found at /components/schemas/Missing. (available keys: "User")
JSON Pointer syntax
- "" (empty string) points to the entire document.
- /foo picks the "foo" key of the root object.
- /foo/0 picks the first element of the array at /foo.
- /foo/- refers to the index after the last array element. Reading it returns no value.
- Inside a token, encode ~ as ~0 and / as ~1. The order matters: a literal ~1 in a key encodes as ~01.
- Array indices must be 0 or a non-negative integer with no leading zero, or the literal -.
Where you see JSON Pointer
- JSON Patch (RFC 6902) uses pointers as the path and from targets of every operation.
- JSON Schema uses pointers in $ref values (after the # fragment).
- OpenAPI 3.x cross-references components with $ref pointers like #/components/schemas/User.
- JSON-LD, RFC 7396 Merge Patch-style errors, and many API error responses report the offending field with a JSON Pointer.
How to use
- Pick a sample (RFC 6901 example, OpenAPI $ref, JSON Patch, or deeply nested) or paste your own JSON into the JSON document box. The status line below confirms whether the JSON parses.
- Type one or more JSON Pointers into the pointers box, one per line. Use an empty line for the root document, or paste a list from a JSON Patch operation, an OpenAPI $ref, or an API error response.
- Each pointer becomes a result card. The kind chip (Object, Array, String, Number, Boolean, Null, or Missing) and the preview line let you scan the list at a glance.
- Expand the resolution trace on any pointer to see every token applied step by step. When a pointer fails, the trace points at the exact segment that did not match and lists nearby keys.
- Use Copy pointer for the JSON String form, Copy URI fragment for the form used in $ref values and URLs, or Copy value to grab the resolved JSON.
About this tool
JSON Pointer Tester evaluates JSON Pointer strings against any JSON document, following RFC 6901 exactly. The empty string resolves to the entire document, a leading slash starts a reference token, and inside each token a tilde must appear as ~0 and a forward slash must appear as ~1, with the order applied correctly so that a literal ~1 encoded as ~01 round-trips without surprises. Array indices are limited to 0 or a non-negative integer with no leading zero, and the hyphen token refers to the index after the last array element (RFC 6901 defines reading it as no value, which the tester reflects). The URI Fragment Identifier representation from section 6 is supported as well: pointers that begin with # are percent-decoded automatically, and every result card shows both the JSON String form and the URI Fragment form so you can copy whichever your environment expects. Paste a single pointer or a whole list, one per line, and every pointer is resolved against the same document in parallel. Each row shows the kind of value found (object, array, string, number, boolean, null, or missing), a short preview, the resolved value pretty-printed as JSON, and a step-by-step trace that walks every token of the pointer so failures point at the exact segment that did not match. When a key is missing, the trace lists nearby keys to help you spot a typo. The tool is useful when you are debugging a JSON Patch document (RFC 6902) and need to confirm that every path and from points at the right field, when you are resolving $ref values in a JSON Schema or OpenAPI 3 document, when you are reading an API error response that reports the offending field with a pointer, or when you are learning the escape rules without trial-and-error against a server. Parsing and evaluation run entirely in your browser, so the JSON document you paste here never leaves your device.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
JSONPath Tester
Evaluate JSONPath queries with filters, regex, and recursive descent.
Open tool
DeveloperJSON Formatter
Format, minify, and validate JSON in your browser.
Open tool
DeveloperJSON Tree Viewer
Collapsible JSON tree with search, JSONPath, type icons, and copy-by-node.
Open tool
DeveloperJSON Schema Generator
Infer a JSON Schema document (Draft 7 or 2020-12) from any JSON value.
Open tool
DeveloperJSON Flatten Unflatten
Two-way converter between nested JSON and path-keyed flat JSON.
Open tool