You are using two different requests to two different urls and comparing them as if the same, the first is get to json/resume.json and the second is POST to json/download.php. The only reason the first call would fail is either one of these:
json/resume.json does not exist
json/resume.json does not contain valid json
You need to either set global ajax error handlers so that you will get your error from getJSON, or run the same json query through an ajax like:
$.ajax({
url: 'json/resume.json',
type: 'GET',
dataType: 'json'
success: function(response) {
console.log(response)//should come into console anyway
},
error: function(request, type, errorThrown) {
message = (type=='parseerror') ? "json is invalid" : "(" + request.status + " " + request.statusText + ").";
alert("error with request: "+message);
}
})