JSON Pointer Tester

Runs in browser JSON & Data

Evaluate JSON Pointer strings as used by JSON Patch and JSON Schema $ref. Handles escaped ~0 and ~1 tokens and lists every pointer present in the document.

Privacy: This tool runs entirely in your browser. Your input never leaves your device.
Loading tool…

How to use JSON Pointer Tester

  1. Paste the JSON document.
  2. Enter a pointer such as /users/0/roles/1 (leave empty for the whole document).
  3. 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.