Hierarchical strings consist of forward-slash-separated components, so a component can't contain a slash. There are two options:
Explicitly prohibit slashes in components.
Define an escaping mechanism. For example, JSON Pointer (RFC 6901) is made of just such forward-slash-separated strings. It uses ~1 for literal slash, and (since ~ is now special) ~0 for a literal tilde.
Hierarchical strings consist of forward-slash-separated components, so a component can't contain a slash. There are two options:
~1
for literal slash, and (since~
is now special)~0
for a literal tilde.Which shall it be?