How to get index of a key value pair
<pre><code>    var myObj={
        age: null,
        anothercolumn: null,
        caseNum: null,
        casecount: null,
        casecountfgfg: null,
        city: null,
        country: null,
        county: null
   }
</code></pre>

<p>I have to change key name which is at 3rd position.
The information I have only the new key name and position .</p>

<p>something like</p>

<pre><code>myObj[2] = 'new value'
</code></pre>

<p>please suggest </p>