Hi every body!!!
I want to create a json object from an array with javascript. But, what i get through the function below is not what i want.
Can anyone help me.
Here is the code and the result:
var x = tabResult[0];
for(var k= 0; k < x.length; k++)
{
console.log(x[k+1]);
var my_json =
{"day":x[k+1]
}
Object {day: "1"}