So I want to declare a javascript array with multiple fields.
For example I know you can do something like
var data = [
{
"field one": "a",
"field two": "b",
},
{
"field one": "c",
"field two": "d",
}
]
However, I don't know to do create such an array dynamically so that I don't have to initialize the fields at declaration time.