public function getPayloadJSON()
    {
        $data = is_string($this->data) ? mb_convert_encoding($this->data, 'UTF-8') : $this->data;
        return json_encode($data);
    }
public function getPayloadJSON()
    {
        $data = is_string($this->data) ? mb_convert_encoding($this->data, 'UTF-8') : $this->data;
        return json_encode($data);
    }
public function getPayloadJSON ( ) { $ data = is_string ( $ this -> data ) ? mb_convert_encoding ( $ this -> data , 'UTF-8' ) : $ this -> data ; return json_encode ( $ data ) ; }
Get payload as a JSON string.

@return string
Get payload as a JSON string .