Reputation: 18790
How to check the response of getJSON function call in jQuery file. Which function do I have to edit?
Upvotes: 3
Views: 15260
Reputation: 17734
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
Upvotes: 13