title: Parsed JSON contains only the last element
body: <p>In the following code after converting the JSON string to object the second console statement gives me only the last element the first element is ignored. Why? How can I get the first element?</p>
  
  <pre><code>        var key_val_pair = keyvalues;  
          console.log(key_val_pair);  //{"4":"123","4":"456"}
  
          key_val_pair = JSON.parse(key_val_pair);
          console.log(key_val_pair); // {"4":"456"}
         for(var entry in key_val_pair)
         {
              console.log(entry); 
              console.log(key_val_pair[entry]); 
         }
  </code></pre>