Code Beautify / MULTIVERTO

Unescape JSON Pointer token

Recover a property name from one JSON Pointer token.

Live converterYour input stays in this browser. No text is uploaded for conversion.

The file stays in your browser.
Chain tools

Apply each text tool to the previous result. Text workflows ↗

Only the recipe name and tool order are saved in this browser. Your input and results are never saved.

01 / Example

Example

Your inputname~1a~0b
Resultname/a~b

02 / Guide

Unescape JSON Pointer token — How it works

What the conversion does

Recover a property name from one JSON Pointer token. Decode ~1 as slash before decoding ~0 as tilde.

Worked example

The sample input is name~1a~0b; its converted form is name/a~b.

Format rules and limits

Other tilde sequences are invalid and are rejected. For a full pointer, escape each property name separately and then join tokens with a leading slash. The empty token is allowed and names an empty-string property; it is different from an absent token. Do not apply generic URL encoding instead: percent escapes belong to a URI fragment representation and have a different layer of meaning. Read one escaped path segment from a pointer before using it as a property name in an object. Enter only the encoded segment, without a path-leading slash or URI fragment marker. The token a~1b names one property a/b; it does not select child b of property a. The exact sequence ~01 decodes to the literal characters ~1 because decoding happens once in the specified order. An invalid tilde code is an error rather than a character to leave untouched. If a complete pointer has several segments, split it on literal slashes first, then decode each segment separately.

Check the result

Test ~01: decoding ~1 before ~0 must produce ~1, not a slash. An isolated ~ or an escape other than ~0 and ~1 must be rejected. Supply one already separated token, not a complete pointer path. The decoding order matters for a sequence where an encoded tilde precedes a digit; applying a second pass would alter the intended literal name. Reject unknown tilde escapes instead of silently cleaning them up. If a pointer lookup fails, inspect both the original token and the decoded property name before checking the JSON object. A leading slash belongs to the surrounding pointer syntax, and a fragment marker belongs to a different representation; neither should be pasted into this field. This page starts with a single escaped token, such as the representation of a property name that contains a slash or tilde. Decode the token before treating it as a key in a JSON object. The order of replacements matters: a literal sequence that represents a tilde must not accidentally become another escape during the same pass. Test a key containing both special characters and compare it with the actual key in the source document. If you are reading a full pointer path, split its structural separators first; otherwise a decoded slash can be mistaken for a new path segment.

How this conversion transforms the input
Pointer token — Input
Read and transform structure
Text — Result

Explore guides

Conversion guides

Explore guides