In the result of the ajax query, I receive a json, to this I need to list it in a table, apply the following, but it does not work for me. Someone to give me a hand, please.
$.ajax({
url:rutaOculta+"ajax/ajax.carrito.php",
method:"POST",
data:datos,
cache:false,
contentType:false,
processData:false,
success:function(respuesta){
var resultado=JSON.parse(respuesta);
$.each(resultado, function(index, value) {
$(".cuerpo-tabla").html('<tr>'+
'<th>'+inex.descripcion+'</th>'+
'<th>'+inex.precio+'</th>'+
'<th>'+inex.cantidad+'</th>'+
'</tr>');
});
}
})