I had found json url for live display of scores
http://json-cricket.appspot.com/score.json
Output of json:
{
"batting_team": "Canada", "date": "Feb 28, 2011",
"match": "Canada vs Zimbabwe", "score": "Canada 106-8 (37)",
"summary": "Z Surkari(21) H Baidwan(3)*"
}
I don't know how to fetch and display the data in my site I am using following codes:
$.getJSON("http://json-cricket.appspot.com/score.json", function (data) {
$.each(data, function (i, set) {
alert("Batting Team: "+set.batting_team);
});
});
Please mention me what wrong I did. I can't get the data from json
. I am not being able to connect to the site.
Thanks in advance