JavaScript: How to define an "object"
<p>I'm using the very handy <strong><a href="http://www.jslint.com/" rel="nofollow">JSLint</a></strong> tool to ensure my javascript is strict.</p>

<p>I have the following code that is being flagged by JSLint:</p>

<pre><code>var my_obj = new Object();   // &lt;-- JSLint states "Use the object literal notation {}."
var numKP = 1;

while (query.indexOf('&amp;') &gt; -1) {
    keypairs[numKP] = query.substring(0,query.indexOf('&amp;'));
    query = query.substring((query.indexOf('&amp;')) + 1);
    numKP++;
}

keypairs[numKP] = query;

for (i in keypairs) {
    my_obj[keypairs] = keypairs[i];
}
</code></pre>

<p>How should I fix the code above to make it JavaScript "strict" (pass the JSLint validator)?</p>
