Hi Bruce, thank you for the answer.
This is an example for the structure what I need:
[
{
"numero_reserva": "14236",
"tipo_cuarto": "STD",
"cuarto": "101",
"fecha_llegada": "2025-12-25",
"fecha_salida": "2025-12-30",
"estatus": "Garantizada",
"codigo_tarifa": "RACK",
"importes_por_noche": [
{
"fecha_aplicacion": "2025-12-25",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
},
{
"fecha_aplicacion": "2025-12-26",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
},
{
"fecha_aplicacion": "2025-12-27",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
},
{
"fecha_aplicacion": "2025-12-28",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
},
{
"fecha_aplicacion": "2025-12-29",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
}
]
},
{
"numero_reserva": "14237",
"tipo_cuarto": "STD",
"fecha_llegada": "2025-12-26",
"fecha_salida": "2025-12-28",
"estatus": "No garantizada",
"codigo_tarifa": "RACK",
"importes_por_noche": [
{
"fecha_aplicacion": "2025-12-26",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
},
{
"fecha_aplicacion": "2025-12-27",
"importe_s/impuestos": 840.34,
"importe_c/impuestos": 1000
}
]
}
]
Have you tried feeding the JSON you want into https:// capesoft .com/jfilescode ?
Yes, I use the code exactly as it appears on the page, then I just fill the queues, but I get the error I posted before.
This is my queues definition:
response QUEUE,NAME('response')
numero_reserva STRING(7),NAME('numero_reserva| opt')
tipo_cuarto STRING(6),NAME('tipo_cuarto| opt')
cuarto STRING(4),NAME('cuarto| opt')
fecha_llegada STRING(10),NAME('fecha_llegada| opt')
fecha_salida STRING(10),NAME('fecha_salida| opt')
estatus STRING(20),NAME('estatus| opt')
codigo_tarifa STRING(8),NAME('codigo_tarifa| opt')
importes_por_noche &importes_por_noche_QT,NAME('importes_por_noche| opt | queue')
END
importes_por_noche_QT QUEUE,TYPE,NAME('importes_por_noche')
fecha_aplicacion STRING(10),NAME('fecha_aplicacion')
importe_simpuestos REAL,NAME('importe_s/impuestos')
importe_cimpuestos REAL,NAME('importe_c/impuestos')
END