src/JsonStream.php
public function getContents()
    {
        $encoder = $this->getEncoder();
        $output = '';

        while ($encoder->valid()) {
            $output .= $encoder->current();
            $encoder->next();
        }

        $this->cursor += strlen($output);
        $this->buffer = null;

        return $output;
    }
public function getContents()
    {
        $encoder = $this->getEncoder();
        $output = '';

        while ($encoder->valid()) {
            $output .= $encoder->current();
            $encoder->next();
        }

        $this->cursor += strlen($output);
        $this->buffer = null;

        return $output;
    }
public function getContents ( ) { $ encoder = $ this -> getEncoder ( ) ; $ output = '' ; while ( $ encoder -> valid ( ) ) { $ output .= $ encoder -> current ( ) ; $ encoder -> next ( ) ; } $ this -> cursor += strlen ( $ output ) ; $ this -> buffer = null ; return $ output ; }
Returns the remaining bytes from the JSON stream.
@return string The remaining bytes from JSON stream
Returns the remaining bytes from the JSON stream .