Skip to main content

Class: RelativeJSONPointer

jsonpointer.RelativeJSONPointer

A relative JSON Pointer.

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

Constructors

constructor

new RelativeJSONPointer(rel): RelativeJSONPointer

Parameters

NameType
relstring

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

isIntLike(value): boolean

Parameters

NameType
valueundefined | string | number

Returns

boolean

Defined in

src/pointer/pointer.ts:385


parse

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

Parameters

NameType
relstring

Returns

[number, number, string | JSONPointer]

Defined in

src/pointer/pointer.ts:344


parseInt

parseInt(s): number

Parameters

NameType
sstring

Returns

number

Defined in

src/pointer/pointer.ts:373


to

to(pointer): JSONPointer

Parameters

NameType
pointerstring | JSONPointer

Returns

JSONPointer

Defined in

src/pointer/pointer.ts:310


toString

toString(): string

Returns

string

Defined in

src/pointer/pointer.ts:300