Skip to main content

Function: compile()

compile(path): JSONPathQuery

Compile JSONPath path for later use.

Parameters

path

string

A JSONPath expression/query.

Returns

JSONPathQuery

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.

Defined in

src/path/index.ts:90