JsonPointer
Represents a JSON Pointer as defined in RFC 6901.
A JSON Pointer is a string that identifies a specific value within a JSON document using an array of reference tokens. Segments are separated by '/' and may contain '~' (for escaping) characters.
Relative JSON Pointers (draft-bhutton-relative-json-pointer-00) are supported via the plus operator, which accepts a relative pointer string and returns a RelativePointerResult. The minus operator computes the relative pointer string that navigates from this pointer to another.
Types
Companion object for creating JsonPointer instances and providing constants.
Properties
Functions
Returns the path segment at the specified index.
Returns the Relative JSON Pointer string that navigates from this pointer to other.
Concatenates this pointer with another pointer, creating a new pointer with combined segments.
Applies a Relative JSON Pointer (draft-bhutton-relative-json-pointer-00) to this pointer.
Pops the first segment from this pointer, returning both the segment and a new pointer without that segment.
Returns the URI fragment identifier representation of this pointer, as defined in RFC 6901 §6.