title: ExtJS Ext.data.JsonStore loadData
body: <p>Can you help me solve the issue I'm running into with the loadData function as part of the Ext.data.JsonStore? I've created a basic example of the problem I'm running into:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
      &lt;title&gt;Ext JSON example&lt;/title&gt;
       &lt;script type="text/javascript" src="lib/ext-base.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="lib/ext-all.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      function example() {
          var exampleData = "{'exampleJSON' : {'exampleArray':[{'exampleID':1,'name':'Fred','description':'a guy'},{'exampleID':2,'name':'sue','description':'a girl'}]}}";
  
          var exampleStore = new Ext.data.JsonStore({
              data: new Ext.data.MemoryProxy(exampleData),
              autoLoad: false,
              root: 'exampleJSON.exampleArray',
      fields: [
            {mapping: "exampleID", name: 'exampleID'},
            {mapping: "name", name: 'name'},
            {mapping: "description", name: 'description'}
      ],
              listener: {
                   load: function (oStore, ayRecords, oOptions ) 
           {
              alert('loaded successfully');
           }
              }
          });
  
          exampleStore.loadData(exampleData);  
      }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;&lt;button onclick="example();"&gt;Click for Example&lt;/button&gt;&lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;  
  </code></pre>
  
  <p>The problem I'm running into is I'm getting this error reported by Firebug:
  <strong>obj.exampleJSON is undefined</strong> 
  This is likely being caused when I set the root as 'exampleJSON.exampleArray'.
  Can someone help point out what I'm doing wrong?</p>
  
  <p>(using ExtJs 4.1.0)</p>
  
  <p>Thanks guys.</p>
  
  <p>EDIT: to set this up, place ext-all.js and ext-base.js in a lib folder.</p>