title: How to Encode from Extjs.Class to JSON String?
body: <p>I want to Encode EXTjs Class to Json, But, I can't..</p>
  
  <p>I use JSON.stringify, but that gives Exception with Type error.</p>
  
  <p>How can I do that?</p>
  
  <p>Thanks and Here my Code.</p>
  
  <pre><code>Ext.define('Text',{
      extend : 'Ext.Img',
      x : 50,
      y : 50,
      size : 100,
      text : 'Text',
      name : 'Text',
      src : ' ',
      tag : '',
      Events : []
  });
  
  var text = new Text();
  var temp = JSON.stringify(text);
  </code></pre>