Json data with C# in <data> tag

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

psomepalli

  • Posts: 6
  • Joined: Fri Aug 25, 2017 11:43 am

Json data with C# in <data> tag

PostFri Aug 25, 2017 1: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
Offline

support

  • Posts: 3348
  • Joined: Mon Jun 02, 2003 4:47 pm
  • Location: Boston, MA

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

PostMon Aug 28, 2017 4:23 pm

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

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron