fromFragment

Creates a JsonPointer from a URI fragment identifier as defined in RFC 6901 §6.

The fragment must start with #. The remainder is percent-decoded per RFC 3986, then parsed as a JSON Pointer string.

Return

A JsonPointer represented by the fragment.

Parameters

fragment

The URI fragment string, which must start with #.

Throws

if the fragment does not start with #, contains invalid percent-encoding sequences, or the resulting pointer string is invalid.