public function showResponseAsJson($object, $code = 200) { $this->response->setContentType('application/json', 'utf-8'); return $this->response->setJsonContent($object); }