Запрос:
$.ajax({
type: "POST",
url: req_ajx_host + "ajx/sharecount/",
data: "&projid=<?=$proj['id'];?>",
success: function (data) {
$("#sharecount").html(data);
alert(data);
}
});
Выводит строку:
[{"sco":"12"}]
Как из строки сделать массив и вывести значение 12?
data[0]['sco']