\JmesPathAstRuntime

Uses an external tree visitor to interpret an AST.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$parser
$interpreter
$cache
$cachedCount
N/A

Properties

$parser

$parser

$interpreter

$interpreter

$cache

$cache

$cachedCount

$cachedCount

Methods

__construct()

__construct(\JmesPath\Parser  $parser = null, callable  $fnDispatcher = null) : mixed

Parameters

\JmesPath\Parser $parser
callable $fnDispatcher

Returns

mixed —

__invoke()

__invoke(string  $expression, mixed  $data) : mixed

Returns data from the provided input that matches a given JMESPath expression.

Parameters

string $expression

JMESPath expression to evaluate

mixed $data

Data to search. This data should be data that is similar to data returned from json_decode using associative arrays rather than objects.

Returns

mixed —

Returns the matching data or null