I am returning Json response from zend controller. 

This is my code

Controller Code

public function get()
{

    $result = //calling other function and getting response in array

    print("value in controller before calling toJsonModel");
    print_r($result);
    $temp = $this-&gt;toJsonModel($result);
    var_dump($temp);

    return $temp;
}


toJsonModel function

public function toJsonModel($data = array())
{   
    $data['requestId'] = $this-&gt;getHeader('RequestId');
    print("Value just before returning to controller");
    print_r($data);
    return new JsonModel($data);
}


Response



First and second print displays correct values. But after getting values from toJsonModel when I try to displays wrong values and adds some other values like "captureTo", "terminate" and "children" as protected.

I don't know why it's giving me wrong message. 

Can any one guide me to right path and tell me what the problem is ?

Thanks in advance. 

EDIT
I am adding new screenshot to display full message.

ERROR : 


  {"name":"Email Not Found","message":"No account found with this email
  address.","code":404,"requestId":"12","reason":"error-controller-cannot-dispatch","display_exceptions":true,"controller":"RSMobile\Controller\ForgotPassword","controller_class":null}





Question: How should hands that are EXTREMELY strong in one suit (10+ cards) be bid?
Answer: FWIW, when I was able to play semi-regularly, my partnerships had an immediate opening to 2NT as a Blackwood-style demand bid asking for aces (in addition to the SAYC meaning for 2C). The idea is that 2NT means "partner, my hand is highly unusual in some unspecified way; please let me take control of the auction". The "natural" meaning of a 2NT opening is covered by SAYC 2C (and it seemed worthwhile not to abuse 2C to lie to partner about high-card strength in strange situations - that's "psychic bidding" after all).