Calling a webservice written in php and ajax call is ending up in error function
<script>
$(document).ready(function(){
alert('ajax');
$.ajax({
type: "GET",
dataType: "json",
// crossDomain: true,
contentType: "application/json",
url: "http://domain/Customer/getCountryList",
headers: {
Accept: "application/json",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET"
},
success: function(data){
alert("In S");
},
error:function(xhr,statusText){
alert("In N");
alert('Request Status: ' + xhr.status + ' Status Text: ' + xhr.statusText + ' ' + xhr.responseText);
}
})
})
</script>
And teh service file output is
[{"responseCode":"0"},
[{"countryId":"1","countryName":"USA","isdCode":"","isActive":"\u0001"}]]
how to parse this out put