public function toJson($options = 0, $structure, $assoc = true)
    {
        return json_encode(
            $this->toOutput($structure, $assoc),
            $options
        );
    }
public function toJson($options = 0, $structure, $assoc = true)
    {
        return json_encode(
            $this->toOutput($structure, $assoc),
            $options
        );
    }
public function toJson ( $ options = 0 , $ structure , $ assoc = true ) { return json_encode ( $ this -> toOutput ( $ structure , $ assoc ) , $ options ) ; }
Get the JSON representation of the object

@param int $options
@param string $structure
@param bool $assoc
@return string
Get the JSON representation of the object