Class: JSONPathQuery
jsonpath.expressions.JSONPathQuery
Base class for relative and absolute JSONPath query expressions.
Hierarchy
-
↳
JSONPathQuery
↳↳
RootQuery
Constructors
constructor
• new JSONPathQuery(token
, path
): JSONPathQuery
Parameters
Name | Type |
---|---|
token | Token |
path | JSONPath |
Returns
Overrides
Defined in
Properties
path
• Readonly
path: JSONPath
Defined in
token
• Readonly
token: Token
Inherited from
Defined in
Methods
evaluate
▸ evaluate(context
): unknown
Evaluate the filter expression in the given context.
Parameters
Name | Type | Description |
---|---|---|
context | FilterContext | Evaluation context. |
Returns
unknown
Inherited from
Defined in
toString
▸ toString(): string
Return a string representation of the expression.
Returns
string