title: How can i merge two nested javascript objects?
body: <p>I am currently using the code below:</p>
  
  <pre><code>function mergeFaculty(json){
      tempList = $.extend(tempList, json);
      console.log(JSON.stringify(tempList));
  }
  </code></pre>
  
  <p>However, it does not work.</p>
  
  <p>the objects are the following:</p>
  
  <pre><code>{"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"}}}}
  </code></pre>
  
  <p>any idea why it doesn't work? </p>