Hi I am still learning this JSON stuff...
I think I found a valid JSON:
http://www.nfl.com/liveupdate/scorestrip/ss.json
Problem is I am not sure how I can parse this using AJAX?
Is this possible to do? I have also heard of MooTools what is the difference?
Also here is some code I have just to play around but doesn't seem to work:
$.ajax({
type: "GET",
url: "http://www.nfl.com/liveupdate/scorestrip/ss.json",
dataType: "json",
success: function(data) {
// Interpret response
for (var i = 0; i < data.gms.length; i++) {
document.write("Day: " + data.gms[i][0]);
document.write("<br/>");
document.write("Time: " + data.gms[i][1]);
document.write("<br/><br/>");
}
}
});