I have two arrays, one having user ids and another having tags. ''' ["ELG001", "ELG002"] ["TG01", "TG02"]
''' am supposed to submit to an endpoint that expects a json in this format ''' "id_tags": [{ "id": "ELG001", "tag": "TG01,TG02" }, { "id": "ELG002", "tag": "TG01,TG02" } ] '''
How can I achieve to send the data in the expected format using map function