//-- Intent: takes the given VOICE_ALERT_CONTENT object --// //-- and returns the text content --// var jsonString = ' \ { \ "VoiceItemType":1, \ "AudioSource":[{ \ "$type":"SwiftReach.Swift911.Core.Messages.Voice.AUDIO_SOURCE_TTS_TEXT, SwiftReach.Swift911.Core", \ "AudioType":"audio_source_tts_text", \ "TTSText":"This is the message." \ }] \ }'; $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", headers: {"SwiftAPI-Key": "12345"}, url: "http://api.v4.swiftreach.com/api/Messages/Voice/Helpers/VoiceContentObjectToText", data: jsonString, dataType: "json" success: function(result) { // Do something with the result } }); <!-- example return value --> "[tts]This is the message.[/tts]"