protected function jsonResponse($data = array())
    {
        $this->view->disable();
        $this->response->setContentType('application/json', 'UTF-8');

        return $this->response->setJsonContent($data);
    }
protected function jsonResponse($data = array())
    {
        $this->view->disable();
        $this->response->setContentType('application/json', 'UTF-8');

        return $this->response->setJsonContent($data);
    }
protected function jsonResponse ( $ data = array ( ) ) { $ this -> view -> disable ( ) ; $ this -> response -> setContentType ( 'application/json' , 'UTF-8' ) ; return $ this -> response -> setJsonContent ( $ data ) ; }
Renders JSON response
Disables view

@param array|\Phalcon\Http\ResponseInterface $data
@return null|\Phalcon\Http\ResponseInterface
Renders JSON response Disables view