public function toJson($all = false)
    {
        return $all ? json_encode($this->getAllData()) : json_encode($this->toArray());
    }
public function toJson($all = false)
    {
        return $all ? json_encode($this->getAllData()) : json_encode($this->toArray());
    }
public function toJson ( $ all = false ) { return $ all ? json_encode ( $ this -> getAllData ( ) ) : json_encode ( $ this -> toArray ( ) ) ; }
Convert the fetched row to json
Convert the fetched row to json