I am creating an array in JSON, and would like to know how to create another array inside the object.
var objeto;
objeto = {
"item" : [
{
"id" : delDiv,
"nome" : nomeItem.value,
"cod" : codItem.value
}
]
}
I would like to create a new item with new information without overwriting the information already placed.