JavaScript Push Dictionary dans le tableau
var dict = []; // create an empty array
dict.push({
key: "keyName",
value: "the value"
});
feddynventor
var dict = []; // create an empty array
dict.push({
key: "keyName",
value: "the value"
});
var d = {}
for (var i in input) {
var datum = input[i];
d[datum.key] = datum.val
}