Coseva\CSV::toJSON PHP Method

toJSON() public method

Use this to get the entire CSV in JSON format.
public toJSON ( ) : string
return string JSON encoded string
    public function toJSON()
    {
        if (!isset($this->_rows)) {
            $this->parse();
        }
        return json_encode($this->_rows);
    }