Dynamic Repeating Group of API Data?

Hi all - I am trying to display the results of my API call in a table or repeating group, with the caveat being that the column names are dynamic and user selected. So each call consists of a list of column names that the user selects. I would like to display the data in the order that the user specifies, but I am having trouble referencing my API resultant columns via an index. ideally, i would just say - display columns 1 - 10, without having to specify the name of the column. Any ideas? TIA!