Skip to main content

Class: RelativeJSONPointer

A relative JSON Pointer.

See https://datatracker.ietf.org/doc/html/draft-hha-relative-json-pointer

Constructors

new RelativeJSONPointer()

new RelativeJSONPointer(rel): RelativeJSONPointer

Parameters

rel

string

Returns

RelativeJSONPointer

Defined in

src/pointer/pointer.ts:292

Properties

index

readonly index: number

Defined in

src/pointer/pointer.ts:285


origin

readonly origin: number

Defined in

src/pointer/pointer.ts:284


pointer

readonly pointer: string | JSONPointer

Defined in

src/pointer/pointer.ts:286

Methods

isIntLike()

protected isIntLike(value): boolean

Parameters

value

undefined | string | number

Returns

boolean

Defined in

src/pointer/pointer.ts:385


parse()

protected parse(rel): [number, number, string | JSONPointer]

Parameters

rel

string

Returns

[number, number, string | JSONPointer]

Defined in

src/pointer/pointer.ts:344


parseInt()

protected parseInt(s): number

Parameters

s

string

Returns

number

Defined in

src/pointer/pointer.ts:373


to()

to(pointer): JSONPointer

Parameters

pointer

string | JSONPointer

Returns

JSONPointer

Defined in

src/pointer/pointer.ts:310


toString()

toString(): string

Returns

string

Defined in

src/pointer/pointer.ts:300