{
"Key1": "Value1",
"Key2": "Value2",
"Key3": {
"SubKey1": "SubValue1",
"SubKey2": "SubValue2"
}
}
{
"Key1": "Value1",
"Key2": "Value2",
"Key3": {
"SubKey1": "SubValue1",
"SubKey2": "SubValue2"
}
}
To send a JSON object in an email with readable formatting, you can use Power Automate's HTML capabilities to structure the JSON in a way that is easy to read. Here's how you can achieve it:
json()
and string()
functions:
This ensures the JSON is formatted correctly, even if the structure changes.Use the "Send an email" action to create a well-structured email body.
Since you’re using a child flow for error handling, ensure that:
replace
expression (as shown earlier) to format the JSON dynamically.The JSON will appear nicely formatted and easy to read:
If you want a cleaner look, convert the JSON into an HTML table for emails:
Use the "Create HTML Table" action:
Embed the table in the email body:
<pre>
tags work well).Let me know if you’d like a detailed walkthrough of any part! 😊
stampcoin
79
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1