I know I can do something like that:
var data = [
{
name: 'test1',
value: 1
}
];
But I want to fill data
with dynamic values (from HTML). So I will have var data = [];
and how can I fill this one? I know, it must be somewhere on the internet, but I don not know the "right words" to search.
Note: data
have to be array filled with objects.