FluidTYPO3\Vhs\ViewHelpers\Format\Json\DecodeViewHelper::render PHP Метод

render() публичный Метод

public render ( string $json = null ) : mixed
$json string
Результат mixed
    public function render($json = null)
    {
        if (null === $json) {
            $json = $this->renderChildren();
            if (true === empty($json)) {
                return null;
            }
        }
        $value = json_decode($json, true);
        if (JSON_ERROR_NONE !== json_last_error()) {
            throw new Exception('The provided argument is invalid JSON.', 1358440054);
        }
        return $value;
    }
DecodeViewHelper