Page 1 of 1

Json data with C# in <data> tag

Posted: Fri Aug 25, 2017 12:17 pm
by psomepalli
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

Re: Json data with C# in <data> tag

Posted: Mon Aug 28, 2017 3:23 pm
by support
Hi,

Could you please post the code you are using to access the Json data? We need to see how you are fetching the data to determine why it is returning the error.

Regards,
Plum Support