How to check the response of getJSON function call in jQuery file. Which function do I have to edit?
1 Answer
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
getJSONwithgetyou get to see the raw response instead of JSON.