title: How to send extjs data via json
body: <p>i am working extjs. i want to send textfields data via json. So i have written code as-</p>
  
  <pre><code>Ext.define('Balaee.controller.kp.WordController',{
      extend: 'Ext.app.Controller',
      stores: ['kp.WordStore'],
      models: ['kp.WordModel'],
      views: ['kp.Word.Word'],
      refs:[
         {
              ref:'wordtext',
              selector:'textfield[name=wordtext]'
         },
         ],
      init: function() {
          console.log('Inside word controller');
          this.control(
                  {
              'Word button[action=SearchAction]':
              {
                  click:this.SearchWord
              },
  
          });//End of control
      },//End of init() function
  
      SearchWord:function(button)
      {
          var j = Ext.getCmp('wordtext').getValue();
          console.log("word is:"+j);
  
  
                              var wordObject = Ext.ModelManager.create(
                  {
  
                      word:Ext.getCmp('wordtext').getValue(),
                  },'Balaee.model.kp.WordModel');
  
  
          wordObject.save({    
              success: function(record, operation) 
              {
                  console.log("registration successssssssssss  "+record);
              },//End of success function
              failure: function(record, operation) 
              {
                  console.log("Inside failure functionnnnn");
              },//End of failure function
              callback: function(record, operation)
              {
                  console.log("Inside callback functionnnnnn");   
                  console.log(record);
              }//End of callback function
          });// End of
      },
  
  
  });//End of Controller
  </code></pre>
  
  <p>But its always going in failure function. So what additional changes i need to do. please can someone please help me...</p>