/** * Controls how JSON structure for the Tropo object is rendered. * * @return string * @access private */ public function __toString() { // Remove voice and language so they do not appear in the rednered JSON. unset($this->_voice); unset($this->_language); // Call the unescapeJSON() method in the parent class. return parent::unescapeJSON(json_encode($this)); }