title: return json object fron function
body: <p>I am trying to return a json object from a function and use it as the below code, but it's not working. what wrong with it?</p>
  
  <pre><code>var x = [ "EditFileName" , "dosometing" ];
  c_loadAjax.apply(this,x).done(function(json){
      alert(json.error);
  });
  function c_loadAjax( post , option ){
      $.ajax({
          type:"POST",
          url:"/includes/Ajax.php",
          data:{post:post,option:option},
          error:function(result){
              return '{"error":"Error"}';
          },
          success:function(result){
              return jQuery.parseJSON(result);
          }
      });
  }
  </code></pre>