Функцию через которую получаю JSON
function GetServices(type,region_id,group_id)
{
jQuery.ajax({
method: "POST",
url:"",
data:"?®ion_id="+region_id+"&type="+type+"&group_id="+group_id,
success: function (html){
var obj = JSON.parse(html);
jQuery("#temp").html("");
jQuery.each(obj, function(index, value) {
jQuery("#temp").append("service_id:"+service_id+", name:"+value.name+"");
});
}
});
}
Параметры которые получаю
0: {
id: "142", name: " ", type: "1", region_id: "12"}
1: {
id: "476", name: " ", type: "1", region_id: "12"}