This seems like the most bizarre thing:
var mah_dataz = $.get("link/to/request");
console.log(mah_dataz);
/* result is the whole shebang:
Object {
abort: function (a){var b=a||u;return d&&d.abort(b),c(0,b),this}
always: function (){return e.done(arguments).fail(arguments),this}
complete: function (){if(i){var c=i.length;!function f(b){ab.each(b,function(b,c)
readyState: 4
... you get the idea...
responseText: "{'returns': {'wellFormatted':'JSON', 'cross':'MyHeart'}}" */
But!
var mah_dataz = $.get("link/to/request");
console.log(mah_dataz.responseText)
// result is:
// undefined
This was very quickly marked a duplicate and dismissed, but no one even fully answered the question let alone posted a link to the duplicate. The question is:
Why is this so? Why is a whole object returned in the first case, and then, in the second case when a property thereof is referenced, it's undefined? I don't understand why this kind of object behaves fundamentally (or appears to so behave) differently than other javascript objects?