Transform rg data into obj

Good evening everyone. I am trying to extrapolate the data from my repeating group and transform them into an object to be sent to my external api.
The data I need to retrieve is the id of that cell and the index of that cell. Now I have managed to achieve this via the rg extractor and rg data plugin:
index: 1,2,3
id: 134,135,136
. I would like to be able to transform these 2 elements into this:
[{id: 134, index: 1}, {id: 135, index: 2}, {id: 136, index: 3}] .
How could I do such a thing? Thanks in advance

This topic was automatically closed after 70 days. New replies are no longer allowed.