JSON Pointer Tester
Test a JSON Pointer (RFC 6901) against your JSON data and see the exact selected value or a clear invalid-pointer error.
Paste your JSON data and a JSON Pointer (for example /store/book/0/title) below to see exactly what it selects.
Use / to separate keys/indices, ~1 for a literal /, and ~0 for a literal ~ inside a key name. An empty pointer "" refers to the whole document.
Follows the JSON Pointer syntax defined in RFC 6901, including ~0 and ~1 escaping for ~ and / characters in property names.
What Is a JSON Pointer?
A JSON Pointer, defined in RFC 6901, is a simple string syntax for referencing one exact location in a JSON document - for example /store/book/0/title points to the title of the first book. Unlike JSONPath, a JSON Pointer always identifies a single, specific value rather than a pattern that can match many.
Why Use This Tool?
Useful when working with specifications that use JSON Pointer directly, such as JSON Patch (RFC 6902) or JSON Schema's $ref, or simply to double-check that a pointer string resolves to the value you expect before using it in code.
How to Use the JSON Pointer Tester
- Paste your JSON data.
- Enter a pointer starting with
/, or leave it empty to reference the whole document. - Click Evaluate to see the selected value, or a clear error if the pointer does not resolve.
Example
For {"a": {"b": [1, 2, 3]}}, the pointer /a/b/1 selects 2.
Troubleshooting
A property name that itself contains a / or ~ character must be escaped in the pointer as ~1 and ~0 respectively - this is handled automatically when you enter the raw property name.