public function toJSON() { if (!isset($this->_rows)) { $this->parse(); } return json_encode($this->_rows); }