Build a json array from input form data

json

Hi Fellow Bubblers.

I need some advice on how to create a json formatted list for the above input form. The final results need to look like this as I need to pass it to an API.

[{“pax”:‘1’,“rate”:2000},{“pax”:‘2’,“rate”:2500}]

What would be the best approach to follow for this keeping in mind that I dont make use of the local database in Bubble