title: parse json-like structure/string in javascript
body: <p>I have this variable:</p>
  <pre><code>var txt = { 
      'e3fe40': { 
          'name' : 'Menu2',
          'data': {
              'prompt_say' : 'Thank you for calling ',
              'keys[]' : ['1','2'],
              'choices[]' : [
                  'start/e3fe40/d2d27',
                  'start/e3fe40/77c197'
              ]...
  </code></pre>
  <p>While I can parse with no problems things such as <code>txt[position].data</code>.... , I cannot seem to be able to parse these two:</p>
  <blockquote>
  <p><code>txt[position].data.keys</code> and <code>txt[position].data.choices</code></p>
  <p>　　<sup>(last two entries from code above)</sup></p>
  </blockquote>
  <p>I tried with</p>
  <pre><code>txt[position].data.keys[1], 
  txt[position].data.keys[],
  txt[position].data.keys
  </code></pre>
  <p>etc.</p>
  <p>None worked. I always get <code>&quot;undefined&quot;</code> value.</p>
  <p>Any ideas?</p>