public function setJsonBody($data)
    {
        $body = json_encode($data, JSON_UNESCAPED_UNICODE);
        $this->setHeader('content-type', 'application/json');
        $this->setBody($body);
    }
public function setJsonBody($data)
    {
        $body = json_encode($data, JSON_UNESCAPED_UNICODE);
        $this->setHeader('content-type', 'application/json');
        $this->setBody($body);
    }
public function setJsonBody ( $ data ) { $ body = json_encode ( $ data , JSON_UNESCAPED_UNICODE ) ; $ this -> setHeader ( 'content-type' , 'application/json' ) ; $ this -> setBody ( $ body ) ; }
Set http request body as Json
@param mixed $data json data
Set http request body as Json