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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Converting email body ...
Power Automate
Unanswered

Converting email body to valid json

(0) ShareShare
ReportReport
Posted on by 4
Hello,
I would like to send the body content of an e-mail (HTML or txt) as a Json via HTTP request to one of our web servers for further processing. The body of the HTTP request should look like this: {"Data": "Body of the email"}. The problem is that the email body may contain characters that invalidate the Json. The content of the e-mail is always different. There is no fixed pattern. Can anyone give me a tip on the best way to solve this problem?
Categories:
  • VictorIvanidze Profile Picture
    13,083 on at
  • CU23110706-0 Profile Picture
    4 on at
    @VictorIvanidze
    Ok. Thanks for the link. My conclusion from thread in stack overflow is that I have to escape the double quote and backslash character. I hope that only these these two characters breaks the json syntax.  This json is accepted:
     {
        "test": "#$%&'()*+,-./:;<=>?@[]^_`{|}~¡¢£¤¥§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\\"
    }
    The double quote an backslash at the end are escaped.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard