$(document).ready(function() {
$.ajax({
url: 'objects.php',
type:'GET',
dataType: 'json',
success: function(response)
var variable = [some_array];
//how to create an variable containing json array and access this variable outside?
}
});
}); alert(variable);
Why this does not work? I smell some scope issue...
Thank you.