private function writeData(array $data, array $options)
    {
        $this->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
    }
private function writeData(array $data, array $options)
    {
        $this->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
    }
private function writeData ( array $ data , array $ options ) { $ this -> write ( json_encode ( $ data , isset ( $ options [ 'json_encoding' ] ) ? $ options [ 'json_encoding' ] : 0 ) ) ; }
Writes data as json.

@return array|string
Writes data as json .