You forgot the function wrapper - your code calls console.log right away instead of passing the callback function:
.then(console.log('get JSON ready!'));
Must be:
.then(function() { console.log('get JSON ready!'); });
Fiddle
Fabrício matté
source share