I have a JSON array that I know is valid. The array shows all of the values when viewing in the webbrowsers:
echo json_encode($response);
I’m thinking I can use JSON .each(); to print these within Titanium, but I’m not sure. What I have so far, isn’t working. I’m not even sure that actually puts anything on the screen even if it works.
$.each(data, function(key, val) {
$('ul').append('<li id="' + key + '">' + val.courseid + ' ' + val.coursename + ' ' + val.courselogo + ' ' + val.coursedesc + '</li>');
});
As Muhammad stated: use the
parsemethod: