In coffeescript, I'm using this to load a json file
$.ajax 'json/data.json',
success : (res, status, xhr, data) ->
console.log("yea "+data)
error : (xhr, status, err) ->
console.log("nah "+err)
complete : (xhr, status) ->
console.log("comp")
file loads but data comes up is undefined?