JSONPath Tools / @jsonpath-tools/jsonpath / NodeList
Class: NodeList
List of Nodes.
Constructors
new NodeList()
ts
new NodeList(nodes): NodeListParameters
nodes
readonly Node[]
Nodes in the list.
Returns
NodeList
Properties
nodes
ts
readonly nodes: readonly Node[];Nodes in the list.
empty
ts
readonly static empty: NodeList;Empty NodeList.
Methods
toNormalizedPaths()
ts
toNormalizedPaths(): NormalizedPath[]Creates normalized paths from the nodes locations.
Returns
toValues()
ts
toValues(): JSONValue[]Extracts JSON values from the nodes.