Hi everyone,
I need to create a JSON array to send to a REST API, the format the API expects is like this:

I have managed to create the array from my data with a select element, after that i have used another select element and now my result looks like this

The only thing remaining is adding to each array element the element and field tags so the API i am sending to understands it, but after many hours of trying i cannot find an option to do this. Can anyone help me?