web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Array into json

(1) ShareShare
ReportReport
Posted on by
How do I convert this array (from append to array variable):
["email1", "email2", "email3"]

into this format:
[
{"address":"email1"},
{"address":"email2"},
{"address":"email3"}
]
I'm using an HTTP connector.  The logic app was created and must have the above format for the recipient.
I tried using Join and/or append to array to insert the address: but each time I insert a double quotation in Join, it turns into \"
Categories:
I have the same question (1)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi
     
    Super Simple, add a Select. In the From put your array (in my case I setup a Test Array variable and set it to what you had)
    in the Key put address
    in the value put the expression item()
     
    And you get what you want as the output after this array, look at the output of the Select
     
  • Suggested answer
    Aethyta Profile Picture
    on at
    I'm pretty sure I tried this the first time and it failed in logic app but its working now.

  • Aethyta Profile Picture
    on at
    Not sure why I cannot accept or mark @FLMike's answer but I tried select and it worked too.  I was able to mark my other one. Also, @mention doesn't seem to work as well.  Thank you @FLMike.  I'll be sure to document it for next time I need to use this logic app. 
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Yeah I dont know why, but the system is ridiculous
     
    I answer many hours or days before... but if someone else answers way later they show up first.. kinda a waste of my time lately really
  • Aethyta Profile Picture
    on at
    This is so weird.  I tried marking @FLMike first response as an answer again and it didn't work again -- just kept the loading icon running in circle.  But when I tried marking his last response, it took it immediately. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard