I'm struggling with my Javascript skills. Here is the code snippet I am currently working with:
var information = [
{"Column":"","keyw":"","Column_3":"day of march 2011 to someother numeric"},
{"Column":"","keyw":"","Column_3":"this 22nd day of march 2011 to someother string"},
{"Column":"","keyw":"","Column_3":"this 22nd day of march 2021 monitor ground fort ord 1990 101"},
{"Column":"","keyw":"forhidden","Column_3":" area to avoid some other douling"},
{"Column":"","keyw":"forhidden","Column_3":" area to avoid some other string forbidden area"},
{"Column":"","keyw":"notpermitted","Column_3":"y of march 2001 monitor ground not permitted in states 1990 101"},
{"Column":"forhidden area to ","keyw":"avoid","Column_3":" some other douling"},
{"Column":"forhidden area to ","keyw":"avoid","Column_3":" some other string forbidden area"},
{"Column":"forbidden area to avoid some other ","keyw":"doubling","Column_3":""},
{"Column":"this 22nd day of march 2001 ","keyw":"doubling","Column_3":" ground fort ord 1990 101"}
];
var jsonData = JSON.parse(JSON.stringify(information));
//var jsonData = JSON.stringify(data);
Instead of manually creating parameters like this:
parameters = {
a: jsonData[0].Column,
aa: jsonData[0].keyw,
aaa: jsonData[0].Column_3,
b: jsonData[1].Column,
bb: jsonData[1].keyw,
bbb: jsonData[1].Column_3,
...
...
...
}
Is there a way to automate this process using a loop?
Regards, Mike