I have this code below, which is supposed to return the result of the call. I need to do this synchronously so that I know everything is good, however it doesn\'t seem to work.
I just insert this code before getJSON:
$.ajaxSetup({ async: false });
Original answer: Is it possible to set async:false to $.getJSON call