match


Description:

public Node match (Node root)

Matches the JSON tree pointed by `root` using the expression compiled into the `JsonPath`.

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

Parameters:

this

a compiled path

root

the root node of the JSON data to match

Returns:

a newly-created node of type `JSON_NODE_ARRAY` containing the array of matching nodes