Here is my object literal:
var obj = {key1: value1, key2: value2};
How can I add field key3 with value3 to the ob
key3
value3
In order to prepend a key-value pair to an object so the for in works with that element first do this:
var nwrow = {'newkey': 'value' }; for(var column in row){ nwrow[column] = row[column]; } row = nwrow;