public function format()
    {
        $json = (string) $this->getParameter('value');
        if (empty($json)) {
            return '""';
        }

        $html = (boolean) $this->getParameter('html');
        return JSONUtils::format($json, $html);
    }