Here is my object literal:
var obj = {key1: value1, key2: value2};
How can I add field key3 with value3 to the ob
key3
value3
Your example shows an Object, not an Array. In that case, the preferred way to add a field to an Object is to just assign to it, like so:
arr.key3 = value3;