I have my Promise defined as so:
myFunc = function() { $.getJSON(\"./rest/api/some/url\", function(json, textStatus) { console.log(\"AJAX call hit!\"
You need promise-compatible object functon myFunc() returns null
myFunc()
$.when(null).then(function() { console.log("Then block hit!"); });
output : Then block hit!
Try
return $.getJSON("...