I am currently using the code below:
function mergeFaculty(json){
tempList = $.extend(tempList, json);
console.log(JSON.stringify(tempList));
}
However, it does not work.
the objects are the following:
{"modulos":{"id":"1","name":" Usuarios","paginas":{"id":"1","name":" Listado Usuarios","facultades":{"id":"1","name":" ver"}}}}
{"modulos":{"id":"1","name":" Usuarios","paginas":{"id":"1","name":" Listado Usuarios","facultades":{"id":"2","name":" editar"}}}}
any idea why it doesn't work?