Javascript reserved words?
<p>I have some JS code which generates the following object, </p>

<pre><code>return {
 "type": "some thing",
 "width": 2,
 "colour": "#AA12BB",
 "values": [2,3,4]
}
</code></pre>

<p>The creation of this isn't a problem. </p>

<p>In writing the test for the method that returns this am having a problem accessing the width/type attributes: the following assertions fail (it leads to a execution/syntax error, which go away when i comment them). </p>

<pre><code>assertEquals('some thing', jsonObj.type);
assertEquals(2, jsonObj.width);
</code></pre>

<p>while </p>

<pre><code>assertEquals('#AA12BB', jsonObj.colour);
</code></pre>

<p>passes</p>

<p>Since I cannot change the key names for what I am doing, is there any way to access these values?</p>
