first of all a greeting. My detail is the following one I obtain by means of ajax data that I put in some variables that are the following ones
var cveProd = info.Resultado.cveProducto;
var descVal = info.Resultado.DesValor;
var hola = [{idclave: CveProd , descc: descVal }];
Hello I want to put them as an arrangement of objects BUT I receive this
[{"idclave": [" AL-32021611 "," AL-32021612 ", " AL-32021612 ", " AL-32021612 "],
"descc":["7500","Continental","Piso R3","7500"]}]
and it's complicated for me because I need something like this and I can not think of how to do it
var hola= [
{
idclave: "AL-32021612",
descc: "7500" },
{
idclave: "AL-32021612",
descc: "Continental" },
{
idclave: "AL-32021612",
descc: "Piso R3" },
{
idclave: "AL-32021612"
descc: "7500",
}];
Thanks for reading.