/** * Returns data from the input array that matches a JMESPath expression. * * @param string $expression JMESPath expression to evaluate * @param mixed $data JSON-like data to search * * @return mixed|null Returns the matching data or null */ public static function search($expression, $data) { static $runtime; if (!$runtime) { $runtime = Env::createRuntime(); } return $runtime($expression, $data); }