function getListaPaginadaJSON($pagina = 0, $rpp = 3, $condicion = "1=1", $parametros = array(), $orderby = "1")
 {
     $pos = $pagina * $rpp;
     $sql = "select * from " . $this->tabla . " where {$condicion} order by {$orderby} limit {$pos}, {$rpp}";
     $this->bd->setConsulta($sql, $parametros);
     $r = "[ ";
     while ($fila = $this->bd->getFila()) {
         $objeto = new Respuesta();
         $objeto->set($fila);
         $r .= $objeto->getJSON() . ",";
     }
     $r = substr($r, 0, -1) . "]";
     return $r;
 }