Path.compile

Validates and decomposes the given expression.

A JSONPath expression must be compiled before calling json.path.Path.match.

class Path
bool
compile
(
string expression
)

Parameters

expression string

a JSONPath expression

Return Value

Type: bool

TRUE if the compilation was successful, and FALSE otherwise