Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse
iyi akşamlar herkese durduk yere yukarıda ki hatayı almaya başladım console'da çalışmıyor şimdi site. araştırdım net bir çözüm bulamadım, jquery içindeki kodum da aşağıda ki gibi
$.ajax({
url : "ajax.php",
method : "POST",
data : {"islem":"nextTypeName","materialType":materialType,"productTypeName":productTypeName},
success: function(gelen){
res=JSON.parse(gelen);
nextTypeName=res[0];
BasePrice=res[1];
$("#nextTypeName").html("<span>New Material Type</span><br>"+nextTypeName);
}
});