$.ajax({
type: 'GET',
url: 'status.php',
dataType: 'json',
success: function (data) {
$.each(data, function(index, element) {
if(element['status'] == 0) {
//do stuff
}
if(element['status'] == 1) {
//do stuff
}
if(element['status'] == 2) {
//do stuff
}
});
}
});