I need to construct a json called recipient-variables dynamically given that I have 2 seperate arrays One for the emails and the other one for the first and the id.How will I be able to write the code for this in javascript
'recipient-variables': '{"alice@example.com": {"first":"Alice", "id":1}, "bob@example.com":{"first":"Bob", "id":2}}'