Class Standards.JSONPath.Query

class Standards.JSONPath.Query
Description

JSONPath compiler and runtime.

How to use

Create an object of this class for each JSONPath expression you want to evaluate.

Call apply() with each of the JSON values you want to evaluate it for. Note that apply() returns an array of all matching values.


Method create

Standards.JSONPath.Query Standards.JSONPath.Query(string|array(string)|ADT.Stack jsonpath, bool|void is_expr)

Description

Compile a JSONPath expression.

Parameter jsonpath

JSONPath expression.

Parameter is_expr

Flag indicating that this is a sub-expression (and thus may use the '@'-operator in addition to the '$'-operator).

See also

apply()