I've having issues with parsing JSON data from a php file through to JQuery.I've had quite a difficult time finding the most appropriate way of doing this and any help would be appreciated. It needs to be in a function
At the moment I've gotten to the point of:
$.ajax({
url: "Scripts/Interactions.php",
type: "POST",
dataType: "json",
success: function(data){
$.each(data, function(i, grab){
alert(grab.AgentFullName);
})
}
})
While this works, one issue is it presents a row 'Undefined' before the first row, no matter what column I suggest.
Here is a sample of my Json Output data. It's mostly just random Ipsum Lorem at this text, as I'm still in early stages of development. I've checked the data through various online json format checkers and it's come back as valid.
Thanks in advance for any help!