We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Json data with C# in <data> tag

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
psomepalli
Posts: 6
Joined: Fri Aug 25, 2017 10:43 am

Json data with C# in <data> tag

Post 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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

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

Post 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

Post Reply