I have an array here:
var array = [
[
[\'firstName\', \'Nork\'], [\'lastName\', \'James\'], [\'age\', 22], [\'position\', \'writer\']
],
[
See this one:
var array = [
[
['firstName', 'Nork'], ['lastName', 'James'], ['age', 22], ['position', 'writer']
],
[
['firstName', 'James'], ['lastName', 'Rodel'], ['age', 25], ['position', 'programmer']
]
];
function changeData(array)
{
var i,j;
var ret = [];
var tmp = {};
// rotate through every line and create a temporary object which we push to the return array
for (i=0;i