JSONPath Tools / @jsonpath-tools/jsonpath / NodeList
Class: NodeList
List of Nodes.
Constructors
Constructor
ts
new NodeList(nodes): NodeList;Parameters
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.