I got the following lines of code:
for (var i = 0; i<ke.length; i++)
{
var ar = ke[i];
var temp = {ar :(n[a])}; //how to resolve a
console.log(temp);
}
temp an object which should contain a list of columnames(key) and values, but he takes a as literal, how can i fix that? n[a] is a json object and a the colum name
current output: temp = {a:["some", "value"] }
what i want: {"valueOfA" : ["some", "value"] }
I am normally a java developer, so js seems so strange. I hope you can help me. Thanks in advance