Path.match

Matches the JSON tree pointed by root using the expression compiled into the [json.path.Path].

The nodes matching the expression will be copied into an array.

Parameters

rootthe root node of the JSON data to match

Returns

a newly-created node of type

[json.types.NodeType.Array] containing the array of matching nodes