I have function like this:
function GetLala() {
    var lala = $.getJSON(uriLala).done(function (data) {
        return data;
    });
    return lala;
}
Then code like this:
var data = GetLala();
console.log(data.responseJSON);
This returned me undefined. If I type this code in google chrome console - then work.
 
    