Skip to main content

Class: JSONPathQuery

jsonpath.expressions.JSONPathQuery

Base class for relative and absolute JSONPath query expressions.

Hierarchy

Constructors

constructor

new JSONPathQuery(token, path): JSONPathQuery

Parameters

NameType
tokenToken
pathJSONPath

Returns

JSONPathQuery

Overrides

FilterExpression.constructor

Defined in

src/path/expression.ts:194

Properties

path

Readonly path: JSONPath

Defined in

src/path/expression.ts:196


token

Readonly token: Token

Inherited from

FilterExpression.token

Defined in

src/path/expression.ts:195

Methods

evaluate

evaluate(context): unknown

Evaluate the filter expression in the given context.

Parameters

NameTypeDescription
contextFilterContextEvaluation context.

Returns

unknown

Inherited from

FilterExpression.evaluate

Defined in

src/path/expression.ts:20


toString

toString(): string

Return a string representation of the expression.

Returns

string

Inherited from

FilterExpression.toString

Defined in

src/path/expression.ts:25