I tried to create an array of objects but I can't make it work. Here is what I do:
var params = new Array();
console.log(params);
In the console, I see that params is indeed an array.
param = {
begindate: '2014-02-28',
begintime: '00:00:00',
enddate: '2014-02-28',
endtime: '23:59:59',
type: 'abs',
units: 'm3',
steps: 'none',
measureid: '1'};
params.push(param);
console.log(params);
now in the console, I see that params is an object :(.
How can I do that so I have an array of objects?
Thanks,
John.