How to use JSON Pointer Tester
- Paste the JSON document.
- Enter a pointer such as /users/0/roles/1 (leave empty for the whole document).
- Read the resolved value and browse the table of all pointers to pick others.
JSON Pointer Tester features
- Resolves RFC 6901 pointers, including ~0 / ~1 escapes and URI-fragment form (#/a/b)
- Explains exactly which token failed and lists the keys that do exist
- Shows the reference tokens and the equivalent JSONPath
- Enumerates every pointer in the document with type and preview
- Live evaluation
JSON Pointer Tester example
Resolve a pointer with an escaped key
Input:
Pointer: /users/0/a~1b
Document: {"users":[{"a/b":"slash key"}]}Output:
"slash key"Frequently asked questions about JSON Pointer Tester
How is a JSON Pointer different from JSONPath?
A pointer (RFC 6901) addresses exactly one location, e.g. /users/0/name, and is used by JSON Patch, JSON Schema $ref and OpenAPI. JSONPath is a query language that can return many matches.
How do I reference a key containing "/" or "~"?
Escape "~" as ~0 and "/" as ~1. For example the key "a/b" becomes /a~1b and "m~n" becomes /m~0n.
What does the empty pointer "" mean?
It refers to the whole document. A pointer consisting of "/" alone refers to a property whose name is the empty string.
Can I use the URI fragment form?
Yes. Pointers such as #/definitions/User are accepted; percent-encoded characters in the fragment are decoded automatically.