function toJSON() { /* $encodeJson = new Services_JSON(); if (!$encodeJson) return null; $iRows = $this->iRows; $this->iRows = null; // to not pass unnecessary info $jsonStr = $encodeJson->Encode($this); $this->iRows = $iRows; // restore info*/ $iRows = $this->iRows; $this->iRows = null; // to not pass unnecessary info $jsonStr = OEDynUtils::encodeJson($this); $this->iRows = $iRows; // restore info return $jsonStr; }