117
rated 0 times
[
120]
[
3]
/ answers: 1 / hits: 15339
/ 14 Years ago, wed, january 19, 2011, 12:00:00
How to check the response of getJSON function call in jQuery file. Which function do I have to edit?
More From » ajax
How to check the response of getJSON function call in jQuery file. Which function do I have to edit?
I've to agree with the comments above — your question is more than vague! So I'm now only guessing if that's what you want:
$.getJSON('ajax/test.json', function(data) {
alert(JSON.stringify(data));
});
You might have to required the JSON library for this to work:
http://www.json.org/js.html