Paste {"a/b":{"m~n":"ok"}} and resolve /a~1b/m~0n. The first token decodes to a/b and the second to m~n, selecting the string ok without interpreting either character as syntax afterward.
Expected selected value
The value type is string, the formatted result is "ok", and the reference-token count is two. Generating leaves must return the same pointer exactly.
Invalid escape check
Try /a~2b. Because ~2 is not defined by RFC 6901, the resolver rejects INVALID_ESCAPE rather than guessing a member name.
Verify the exact decoded tokens
Check each token against the original member name. Decode ~1 to slash and ~0 to tilde only once, then distinguish object names from canonical array indices. Keep the empty root pointer distinct from / and compare important paths with the authoritative producer contract.