Adding/removing items from JSON data with JQuery
<p>I have a JSON object as follows:</p>

<pre><code>var data = {items: [
    {id: "1", name: "Snatch", type: "crime"},
    {id: "2", name: "Witches of Eastwick", type: "comedy"},
    {id: "3", name: "X-Men", type: "action"},
    {id: "4", name: "Ordinary People", type: "drama"},
    {id: "5", name: "Billy Elliot", type: "drama"},
    {id: "6", name: "Toy Story", type: "children"}
]};
</code></pre>

<p>If I wanted to add/remove items to this list, how would I go about it using JQuery?  I know I can do this quite easily if we simply used an array, but the previous programmer already built the code using JSON, and now the client changed their mind at the last minute and wants this list to be dynamically modifiable.  I want to save time from re-writing all the code to use arrays instead of JSON, so wondering if anyone knows of a way to accomplish this, as I just can't seem to find much information about how to manipulate JSON with JQuery anywhere on the internet.</p>

<p>Many thanks!</p>
