Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / Parser

Class: Parser ​

JSONPath query parser.

Constructors ​

Constructor ​

ts
new Parser(): Parser;

Returns ​

Parser

Methods ​

parse() ​

ts
parse(queryText): Query;

Parses a query text to syntax tree.

Parse is fault-tolerant and does not throw any exceptions. Errors are returned in Query.syntaxDiagnostics.

Parameters ​

queryText ​

string

Text of the query.

Returns ​

Query