Topic: Looping through JSON response

If I return the following JSON response to PlumFuse:

   "notification":"getJobInfo has been called",
         "due_datetime":"2015-04-06 19:00:00",
         "job_item_status":"Shipped "
         "due_datetime":"2015-04-06 19:00:00",
         "job_item_status":"Ganged "

How can I successfully loop through each of the items? Sometimes there is one set of values in "items", sometimes more ... this example has two.

I would like to be able to have the voice response for the above be:

"For job item number" 2452337 "The status is" Shipped
"For job item number" 2452338 "The status is" Ganged

Is this possible?

Last edited by daniel.c@●●○●○ (2015-06-02 14:32:10)

Re: Looping through JSON response

Yes, this is possible. You must extract items as an array of objects, to put on the stack. You can then loop through the stack. We've shared an example application to your account to help illustrate this. Let us know if you have questions.

Re: Looping through JSON response

Thanks - just what I was looking for.