im tryng to use Promises but i don\'t know if in this case, are usefull.
$.getJSON("url", "data", function(json) { json.forEach(function(i