Description
Parse pointer through the shared pointer helper.
JSON Pointer separates path tokens with slashes and escapes literal slash and tilde inside member names. The empty pointer denotes the document root; an empty token can name an actual empty-string member.
Parse pointer through the shared pointer helper.
When to use this tool
Use JSON: JSON Pointer Empty Token Label when you need a pointer token, depth, or representation check.
How to use the tool and how it works
- Enter pointer. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Parse pointer through the shared pointer helper. Return root for zero tokens, every zero-based index of an empty decoded token, and tokenCount.1
The linked pointer-token parser is invoked through the shared helper and supplies decoded tokens, including empty member names.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| pointer | Pointer text in the exact syntax accepted by this tool. | Required. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Result | Required. Object. |
| result.root | Whether the pointer identifies the whole document root. | Calculated result member: boolean. |
| result.emptyMemberTokenIndices | Empty Member Token Indices | Calculated result member: array. |
| result.tokenCount | Number of parsed pointer reference tokens; root has none. | Calculated result member: number. |
{
"input": {
"pointer": "/"
},
"output": {
"result": {
"root": false,
"emptyMemberTokenIndices": [
0
],
"tokenCount": 1
}
}
} Limitations and assumptions
- Empty member tokens differ from the root pointer; no object or array is traversed.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use a complete pointer parser and resolve against the actual document when existence or array access matters.
References
Similar or alternative tools
- JSON Pointer Terminal Empty Segment
Count slash-separated tokens and mark terminalEmpty for a trailing slash.
- JSON Pointer Final Token Is Empty
Invoke the linked pointer parser and return root from the empty input, finalTokenEmpty from its terminal-empty flag, and tokenCount.