My scenario involves dealing with two arrays, one containing user IDs and the other holding tags. ''' ["ELG001", "ELG002"] ["TG01", "TG02"]
''' I need to send this data to an endpoint that requires a JSON in the following structure ''' "id_tags": [{ "id": "ELG001", "tag": "TG01,TG02" }, { "id": "ELG002", "tag": "TG01,TG02" } ] '''
Is there a way to achieve sending the data in the specified format using the map function?