Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / Checker

Class: Checker

JSONPath query checker.

Constructors

Constructor

ts
new Checker(queryOptions): Checker;

Parameters

queryOptions

QueryOptions

Query options.

Returns

Checker

Methods

check()

ts
check(query): readonly Diagnostics[];

Checks whether the query is valid and returns diagnostics. The query is valid if and only if the returned diagnostics contains no errors.

Parameters

query

Query

Query.

Returns

readonly Diagnostics[]