title: extjs treepanel filled with local data
body: <p>I want to setup a treepanel with local data like this:</p>
  
  <pre><code>data =
  {"root":
      {
       "08": {"field": "getCategory3()","name": "Untergruppe","object": "product"},
       "09": {"field": "getCategory2()","name": "Obergruppe","object": "product"}
      }
  };
  </code></pre>
  
  <p>but im confused about how to get the data out of this string.</p>
  
  <pre><code>var mystore = Ext.create('Ext.data.TreeStore', {
  model: treemodel,
  proxy: {
      data : data, 
      type: 'memory',
      reader: { type: 'json' }
  },
  });
  </code></pre>
  
  <p>How to create the model for this? Right now, no data is showing up in my tree</p>
  
  <pre><code>var treemodel = Ext.define('Task', {
  extend: 'Ext.data.Model',
  fields: [
      {name: 'name', type: 'string'},
      {name: 'object', type: 'string'},
  ]
  });
  
  var myTree = Ext.create('Ext.tree.Panel',
  {   xtype: 'treepanel', id: 'myTree',
      containerScroll: false,
      store: mystore,
      root: 'root',
      margin: '0 15 0 0',
      viewConfig: {
          plugins: {
              ptype: 'treeviewdragdrop',
              appendOnly: true,
              sortOnDrop: true,
              containerScroll: true
          }
      }
  }
  ); 
  </code></pre>