Class: JSONPathNode
jsonpath.JSONPathNode
The pair of a JSON value and its location found in the target JSON value.
Constructors
constructor
• new JSONPathNode(value
, location
, root
): JSONPathNode
Parameters
Name | Type | Description |
---|---|---|
value | JSONValue | The JSON value found at location. |
location | (string | number )[] | The parts of a normalized path to value. |
root | JSONValue | The target value at the top of the JSON node tree. |
Returns
Defined in
Properties
location
• Readonly
location: (string
| number
)[]
The parts of a normalized path to value.
Defined in
root
• Readonly
root: JSONValue
The target value at the top of the JSON node tree.
Defined in
value
• Readonly
value: JSONValue
The JSON value found at location.
Defined in
Accessors
path
• get
path(): string
Returns
string
Defined in
Methods
decode_name_location
▸ decode_name_location(name
): string
Parameters
Name | Type |
---|---|
name | string |
Returns
string
Defined in
toPointer
▸ toPointer(): JSONPointer
Return this node's location as a JSONPointer.