function getJson(url) {
return JSON.parse($.ajax({
type: ‘GET’,
url: url,
dataType: ‘json’,
global: false,
async:false,
data: {
filter:value
},
success: function(data) {
return data;
}
}).responseText);
}
Above piece of code solved my issues
solved Ajax call Output into global variable