Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Array into json

Like (1) ShareShare
ReportReport
Posted on 7 Aug 2024 00:18:31 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 \"
  • Aethyta Profile Picture
    on 07 Aug 2024 at 15:32:34
    Array into json
    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. 
  • Verified answer
    Michael E. Gernaey Profile Picture
    42,072 Super User 2025 Season 1 on 07 Aug 2024 at 01:29:30
    Array into json
    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 07 Aug 2024 at 01:25:11
    Array into json
    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. 
  • Suggested answer
    Aethyta Profile Picture
    on 07 Aug 2024 at 00:58:56
    Array into json
    I'm pretty sure I tried this the first time and it failed in logic app but its working now.

  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,072 Super User 2025 Season 1 on 07 Aug 2024 at 00:54:52
    Array into json
    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
     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 105

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 86 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 62 Super User 2025 Season 1

Overall leaderboard