Json data with C# in <data> tag
Posted: Fri Aug 25, 2017 12:17 pm
Hi,
I am trying to get JSON data from my C # controller using data tag
Here is my data tag in parent vxml
<data name="thedata" src="pay.acy.com/Home/Amount" accept="application/json"/>
The Amount controller is returning a JSON object as below
{"ContentEncoding":null,"ContentType":null,"Amount":"300.00","JsonRequestBehavior":1,"MaxJsonLength":null,"RecursionLimit":null}
But I am getting a symantic error while trying to use the controller in data tag. Please suggest
I am trying to get JSON data from my C # controller using data tag
Here is my data tag in parent vxml
<data name="thedata" src="pay.acy.com/Home/Amount" accept="application/json"/>
The Amount controller is returning a JSON object as below
{"ContentEncoding":null,"ContentType":null,"Amount":"300.00","JsonRequestBehavior":1,"MaxJsonLength":null,"RecursionLimit":null}
But I am getting a symantic error while trying to use the controller in data tag. Please suggest