I get the following error on data.push. Why?
Uncaught TypeError: undefined is not a function
when doing this in javascript
var data = ({"name": "button", "value": "delete"});
data.push({"id": 456});
console.log(data);
$.ajax({
type: ...
url: ...
data: data,
dataType: "json"
}).done(function(data) {
...
}).fail(function(data) {
...
});