我想要以下结构:
var data={"users":[
{
"firstName":"Ray",
"lastName":"Villalobos",
"joined":2012
},
{
"firstName":"John",
"lastName":"Jones",
"joined":2010
}
]}
我希望能够以编程方式向其中添加条目。这是我尝试过的:
var data = [];
data.push({
"firstName":"Johsssn",
"lastName":"Jossnes",
"joined":2010
});