code: public function classifiedAnswerAction() 
  	{
  		$request = $this->getRequest();
  		$response = $this->getResponse();
  		
  		// Accept only post request
  		if(!$request->isPost()) {
  		    $response->setStatusCode(Response::STATUS_CODE_500);
  		    return new JsonModel(array(
  				'status' => 'danger',
  				'message' => 'Invalid method call'
  			));
  		}
  		
  		$userService = $this->getServiceLocator()->get('user.service.user');
  		$data = array_merge_recursive(
  			$this->params()->fromPost(),
  			Json::decode($request->getContent(), Json::TYPE_ARRAY)
  		);
  		
  		try {
  		    $response->setStatusCode(Response::STATUS_CODE_200);
  		    $userService->classifiedAnswer($data);
  		    $returnData = array(
  		        'status' => 'success',
  		        'message' => 'La tua risposta è stata inviata!'
  		    );
  		} catch(\Exception $e) {
  		    $response->setStatusCode(Response::STATUS_CODE_500);
  			$returnData = @unserialize($e->getMessage());
  			
  			if(!is_array($returnData)) {
  				$returnData = array(
  					'status' => 'danger',
  					'message' => $e->getMessage()
  				);
  			}
  		}
  		
  		return new JsonModel($returnData);
  	}
docs: When user answer to a classified
  
  @return \Zend\View\Model\JsonModel