title: AJAX Return object contains d in asp.net web form
body: <p>Hey guys Its a simple question but want to stop ajax return object contains <code>d</code>.</p>
  
  <p>I asp.net web form </p>
  
  <pre><code>    $.ajax({
          type: "POST",
          url: myurl,
          data: JSON.stringify({value:"1"}),
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (result) {
              //alert("i am in success");
              console.log(result);
  
          },
          failure: function (response) {
              console.log("I am in failure");
          }
      });
  </code></pre>
  
  <p>and
     in .cs file</p>
  
  <pre><code>        [WebMethod]
  
          public static string getSpareParts(string value)
          {
              List&lt;data&gt; spareParts;
              using (var db = new WaltonCrmEntities())
              {
                  spareParts = db.SpareParts.Select(x =&gt; new data
                  {
                      id = x.ItemID,
                      text = x.ItemName
                  }).ToList();
              }
              JavaScriptSerializer js = new JavaScriptSerializer();
              return js.Serialize(spareParts);
              //return spareParts;
  
          }
  </code></pre>
  
  <p>when result is return it will contain result in <code>result.d</code> but i want to stop this <code>d</code> thing .Simply result should be the <code>result</code>. Can anybody solve this.</p>