addParam("page", p)
addParam("size", s)
registros = ["u1", "u2", "u3", "u4", "u5", "u6"]
offset = int(p) * int(s)
limite = offset + int(s)
contador = 0
addResult(offset)
addResult(limite)
startLoop(i, 2, limite)
    actual = registros[int(i)]
    titulo = "reg_%s" % i
    AddvariableToJSON(titulo, actual, pagina_json)
endLoop()
addResult(pagina_json)