Function: compile()
compile(
path
):JSONPathQuery
Compile JSONPath path for later use.
Parameters
path
string
A JSONPath expression/query.
Returns
A path object with a query()
method.
Throws
JSONPathSyntaxError If the path does not conform to standard syntax.
Throws
JSONPathTypeError If filter function arguments are invalid, or filter expression are used in an invalid way.