minus

operator fun minus(other: JsonPointer): String(source)

Returns the Relative JSON Pointer string that navigates from this pointer to other.

The result is the minimal "go-up-N-levels, then descend" form and never uses index adjustments. The returned string rel satisfies the invariant: (this + rel) == RelativePointerResult.Pointer(other).

Return

A Relative JSON Pointer string (draft-bhutton-relative-json-pointer-00).

Parameters

other

The target JsonPointer.