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
Name | Type |
---|---|
rel | string |
Returns
Defined in
Properties
index
• Readonly
index: number
Defined in
origin
• Readonly
origin: number
Defined in
pointer
• Readonly
pointer: string
| JSONPointer
Defined in
Methods
isIntLike
▸ isIntLike(value
): boolean
Parameters
Name | Type |
---|---|
value | undefined | string | number |
Returns
boolean
Defined in
parse
▸ parse(rel
): [number
, number
, string
| JSONPointer
]
Parameters
Name | Type |
---|---|
rel | string |
Returns
[number
, number
, string
| JSONPointer
]
Defined in
parseInt
▸ parseInt(s
): number
Parameters
Name | Type |
---|---|
s | string |
Returns
number
Defined in
to
▸ to(pointer
): JSONPointer
Parameters
Name | Type |
---|---|
pointer | string | JSONPointer |
Returns
Defined in
toString
▸ toString(): string
Returns
string