/** * Renders the response object into JSON. * Usually there will be no need to override this function. * * @return void */ protected function render() { // Unset not used states unset($this->userStates['page']); unset($this->userStates['limit']); unset($this->userStates['limitstart']); unset($this->userStates['persist']); // Pass the states to the response K2Response::setStates($this->userStates); // Render K2Response::render(); }