//-- Intent: return the text content of the email_content object --//


var jsonString = ' \
{ \
      "SpokenLanguage":"English", \
      "Subject":"my subject", \
       "Body": \
                [{  \
                "$type":"SwiftReach.Swift911.Core.Messages.Email.EMAIL_TEXT_SOURCE_TEXT, SwiftReach.Swift911.Core",  \
                "Text":"this is the body of my email", \
                "TextType":"email_text_source_text" \
                }] \
}';

$.ajax({
  type: "POST",
  contentType: "application/json; charset=utf-8",
  headers: {"SwiftAPI-Key": "12345"},
  url: "http://api.v4.swiftreach.com/api/Messages/Email/Helpers/EmailContentObjectToText",
  data: jsonString,
  dataType: "json"
  success: function(result) {
        // Do something with the result
    }

});


<!-- Example Return Value -->

'this is the body of my email'