public function renderView() {
		header('Content-Type: application/json;charset=utf-8');
		$json = json_encode($this->getViewVariables());
		if ($json) {
			echo $json;
		} else {
			throw new \RuntimeException($this->getEncodeErrors()[json_last_error()]);
		}
	}