Feedback

  • Contents
 

JSON Support for VoiceXML Applications

PureConnect 2019 R3 adds support for two JSON encoding types ("enctype" attributes) to be used with the <data> element in VoiceXML applications. The two enctypes are: “application/json” and “application/json-inin”. These two similar but different JSON enctype data elements provide support for the VoiceXML document to have complete control of the JSON in the body of the <data> element. The "application/json" type automatically formats and sends variables and data in JSON format from the ECMAScript to the specified webservice. The "application/json-inin" type sends just the data (without all of the script variable names) from a single variable in the script, but you must generate the data in JSON format before passing it. PureConnect also supports using the PUT HTTP request method with the <data> element.  For more information, see Supported VXML Data Elements in the VoiceXML Technical Reference document.