title: adding elements to empty json array and removing them
body: <p>I have created an empty json object having an array itemlist(which further contains itemid and title of an item) by this:</p>
  
  <pre><code>var jsonObj = {};
  jsonObj.itemlist=[];
  jsonObj.itemlist.push({});
  </code></pre>
  
  <p>Firstly, have i done the declaration correctly?</p>
  
  <p>Secondly, the title and itemid are generated dynamically so i need to add them to the itemlist array. I tried this but it keeps only one array element:</p>
  
  <pre><code>jsonObj.itemlist['title']=gentitle;
  jsonObj.itemlist['itemid']=genitemid;
  </code></pre>
  
  <p>How can i add multiple elements (not all at once) if i have an empty array of itemlists?</p>
  
  <p>Also, i also need to remove a particular array element based on the title of the element. How can that be done? I think the splice and delete function can be used for this, but how can i find the index of that element?</p>