JSON Object from Collection

I’m reading a list of emails from a Google Sheet and getting the Collections. I’d like to take all the e-mails I’m receiving to create a String in the following format:

"emails": ["test1@example.com", "test2@example.com", "test3@example.com"],

For a JSON Object I need to create for an API. I can’t figure out how to do it. Any thoughts?

Welcome to the Make community!

You can use the JSON Transform to JSON module to convert a variable to an array.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

1 Like

Got it to work, thanks!

2 Likes