Usually this means that your JSON data has an error in the formatting somewhere - perhaps a missing or extra comma. If JSON data cannot be evaluated successfully, it fails silently.

-- Josh

----- Original Message ----- From: "Aljosa Mohorovic" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Monday, November 19, 2007 5:25 AM
Subject: [jQuery] $.getJSON() problem



i have a problem with $.getJSON(), nothing is logged in firebug
console although i can see that correct data is returned in response
(in firebug) for code:

$.getJSON(url, function(data){
   console.log(data);
});
<<<

same code, but using $.get instead $.getJSON works as expected:

$.get(url, function(data){
   console.log(data);
});
<<<

sometimes it works, but  i can't find where it breaks. also, firebug
doesn't report any errors.
any ideas or similar situations?

Aljosa

Reply via email to