title: Adding to JSON array in JavaScript/jQuery
body: <p>I have data being pulled in from various sources, each returning some form of JSON or similar, although, differently formatted each time.  I need to get them all into one array, but I can't figure out how to do it.</p>
  
  <p>The first set is an array like this:</p>
  
  <pre><code>[
   Object {id="70", type="ab", dateadded="12345678"},
   Object {id="85", type="ab", dateadded="87654321"}, ... more items ...
  ]
  </code></pre>
  
  <p>The second set is being pulled in from Facebook, and is like this:</p>
  
  <pre><code>[
   Object {id="12341234234", created_time="12345678"},
   Object {id="567856785678", created_time="87654321"}, ... more items ...
  ]
  </code></pre>
  
  <p>So, I need to alter the second set so that it has 'type', and it has 'dateadded' instead of 'created_time', and then I need to get this all into one array so it can be sorted on 'dateadded'.</p>
  
  <p>How can I do this?</p>