title: adding elements inside specific location of associative array
body: <p>I was curious about adding elements in to an associative array using javascript,</p>
  
  <pre><code>var text=[{"key":"1", "value":"no"},{"key":"2", "value":"yes"} ];
  </code></pre>
  
  <p>what if I want to add an element in to above array... say to second location,</p>
  
  <pre><code>text[1].key="4";
  text[1].value="test";
  </code></pre>
  
  <p>I ve tried it this way,</p>
  
  <pre><code>test.splice(parseInt(1), 0 );
  test[1].type="4";
  test[1].value="test";
  </code></pre>