$.ajax({ url: '/my/script.ext', dataType: 'json', success: function(data, textStatus, jqXHR) { /*YAYE!!*/ }, error: function(jqXHR, textStatus, errorThrown) { /*AWWW... JSON parse error*/ } });