How to reference a javascript hash using a integer value when the key is a string?
<p>My javascript hash on my web page looks like:</p>

<pre><code>{"7":{"prop1":234, ....}"101":{"prop1":121,....}
</code></pre>

<p>I'm trying to reference it like this:</p>

<pre><code>var a = 7;

my_hash[a].prop1
</code></pre>

<p>But it doesn't seem to find the hash object at the key 'a', since a is an integer and my keys are strings.</p>

<p>How can convert it to a string?</p>

<p>I tried:</p>

<pre><code>my_hash[" + a + "].prop1
</code></pre>

<p>But that didn't work either.</p>
