title: remove json attribute where attribute is a variable
body: <p>I have a news feed where items in the feed are created from JSON returned from a server. When the user takes an action on an item, I want to remove it from the object via javascript.</p>
  
  <p>The feed looks like this:</p>
  
  <pre><code>{"newsFeed":[{"feedId":"1",
                "title":"item1 title",
                "desc":"description of the item"},
               {"feedId":"2",
                "title":"item2 title",
                "desc":"description of the item"}]}
  </code></pre>
  
  <p>I'm trying to remove a JSON attribute or entry where the <code>feedId</code> is passed in via a variable using jQuery. I'm not sure exactly where I'm going wrong here, but when I alert the feed before and after the removal of the object, I'm getting the same response:</p>
  
  <pre><code>function removeFromFeed(feedId){
    var newsFeed=jQuery('div#newsFeed').data('newsFeed');
    alert(newsFeed.toSource());
    delete newsFeed.feedId[feedId]
    jQuery('div#newsFeed').data('newsFeed',newsFeed);
    alert(newsFeed.toSource());
  }
  </code></pre>