Zend\Mvc\Controller\AbstractRestfulController::jsonDecode PHP Метод

jsonDecode() защищенный Метод

Uses json_decode by default. If that is not available, checks for availability of Zend\Json\Json, and uses that if present. Otherwise, raises an exception. Marked protected to allow usage from extending classes.
protected jsonDecode ( $string ) : mixed
Результат mixed
    protected function jsonDecode($string)
    {
        if (function_exists('json_decode')) {
            return json_decode($string, (bool) $this->jsonDecodeType);
        }
        if (class_exists(Json::class)) {
            return Json::decode($string, (int) $this->jsonDecodeType);
        }
        throw new Exception\DomainException(sprintf('Unable to parse JSON request, due to missing ext/json and/or %s', Json::class));
    }