js add dict to dict code example
Example 1: javascript add to a dictionary
obj["key3"] = "value3";
Example 2: javascript add to a dictionary
var d = {}
for (var i in input) {
var datum = input[i];
d[datum.key] = datum.val
}
obj["key3"] = "value3";
var d = {}
for (var i in input) {
var datum = input[i];
d[datum.key] = datum.val
}