javascript json arrays code example
Example 1: json arrays
{
"array": [{1,2,3,4,5,6}]
}
Example 2: js create json array
var employees = {
accounting: []
};
for(var i in someData) {
var item = someData[i];
employees.accounting.push({
"firstName" : item.firstName,
"lastName" : item.lastName,
"age" : item.age
});
}