title: JQuery and JSON - Add element
body: <p>I have a JSON variable defined as:</p>
  
  <pre><code>var myCollection = {
    "data": [
      { "name":"Joe", "id":"1" },
      { "name":"Bill", "id":"2" },
      { "name":"Dave", "id":"3" }
    ]
  };
  </code></pre>
  
  <p>I have a JavaScript function that is responsible for adding items to the data element in myCollection. However, I'm not sure how to add a name/id pair to the collection via JavaScript. Can someone show me how to add to a JSON collection via JavaScript?</p>
  
  <p>Thank you!</p>