Summary
- RFC 6901, April 2013, defines "a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document" — a path you can drop into a JSON string or a URI fragment.
- The escapes have an order:
~1becomes/first,~0becomes~second. Reverse it and~01collapses into a slash it never was. - Matching is exact — same code points, "no Unicode character normalization is performed" — and error handling is deliberately left to whoever builds on top.
An identifier made of positions
/servers/0/address does not name a server. It names the first slot in a list and hopes for the best.
That makes JSON Pointer the cheapest identifier ever minted, and the most fragile. Rename a field, insert an item at the front, and the same string now points at something else — silently, cheerfully, without a warning. A pointer is a coordinate. Coordinates do not survive editing.
Every system that stores one has made a quiet bet that the document underneath will not move. Almost none of them wrote the bet down.
The escape order is the whole trick
/ and ~ do work in the syntax, so they need escapes, and the escapes need an order. Unescape ~1 before ~0, or the three-character sequence ~01 becomes a slash that it never was.
This is the smallest possible specimen of the thing that eats formats: a rule nobody reads, one token wide, decided by the order of two substitutions. An implementation that gets it wrong agrees with the rest of the world on every document except the ones containing those characters — which is to say, it passes every test until it doesn't.
Byte for byte, no normalisation
Two strings that look identical on screen can be different sequences of code points, and the specification chooses not to normalise. A member name matches the token exactly or not at all — same code points, "no Unicode character normalization is performed".
That decision is defensible, and it surprises everyone. JSON does not promise unique member names either; the document says that if a name appears twice, the reference is undefined and evaluation simply fails.
Errors are not this document's problem
The specification lists invalid syntax and missing values as error conditions, then declines to say what an implementation should do about them. That is left to the format on top.
The bill lands on consumers. A broken reference has no standard visible behaviour: one library returns null, another throws, a third returns a default and hopes nobody notices. The pointer is standard. The failure is not.
What it made possible
A tiny path syntax turned out to be load-bearing. Patch formats need to name targets. Schemas need to name subschemas. URL fragments need to name parts of a document. Every $ref in every OpenAPI file is a pointer in a suit.
All of them inherit the position-versus-identity problem, and all of them spend their own text on how to fail safely — because the layer below never said.
The lesson about identifiers
Before you mint an identifier, decide whether it names a thing or a place. Places are cheap, readable and unstable. Things are expensive and survive editing.
A record can describe reality. It cannot create it. If your reference can be invalidated by an innocent edit three fields away, write that down at the reference — because users will read a pointer as a promise, and it is only a coordinate.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






