I want the following structure:
var data={"users":[
{
"firstName":"Ray",
"lastName":"Villalobos",
"joined":2012
},
{
"firstName":"John",
"lastName":"Jones",
"joined":2010
}
]}
I want to be able to programatically add entries to it. Here is what I tried:
var data = [];
data.push({
"firstName":"Johsssn",
"lastName":"Jossnes",
"joined":2010
});