Hi guys this is result array from ajax response
[{"qty":1,"name":"7-test-Professional","part_number":"12231","list_price":"800"},
{"qty":1,"name":"Senior Professional Forester","part_number":"","list_price":"97.000000"]
where i am trying to alert each value as
$.ajax({
type: 'POST',
url: 'getdata.php?product_id='+rate_id,
success: function(data)
{
// console.log(result);
result=$.parseJSON( data );
$.each(result, function( index, value ) {
alert( index + ": " + value );
});
//alert(result); //this prints the above array !!
}
});
getting output as : index_value: [object Object]
Thanks for your time.. :)
alert( index + ": " + JSON.stringify(value));?