/** * Return the JSON View Model * @return type */ public function json() { if (!$this->json instanceof Models\Json) { $className = zbase_model_name('view', null, '\\Zbase\\Models\\Json'); $this->json = new $className(); $this->json->start(); } return $this->json; }