I just spent a while trying to workout why my jQuery getJson ajax request was not working. Turns out that getJson by design doesn’t support any error handling at all. So in future it’s probably best to stick to $.ajax calls!

$.ajax({
 url: url,
 dataType: 'json',
 success: function( data ) {
   console.log( 'SUCCESS: ', data );
 },
 error: function( data ) {
   console.log( 'ERROR: ', data );
 }
});

Hope this helps someone!