pop

Pops the first segment from this pointer, returning both the segment and a new pointer without that segment.

Return

A Pair where the first element is the popped segment string and the second element is a new JsonPointer with the remaining segments.

Throws

if called on the root pointer