public function send()
{
$json = str_replace("", '', Horde::escapeJson($this->_jsonData()));
if ($this->jsonhtml) {
header('Content-Type: text/html; charset=UTF-8');
echo htmlspecialchars($json, null, 'UTF-8');
} else {
header('Content-Type: application/json');
echo $json;
}
}