title: How to remove d: and __type from JSON response for ASP web service
body: <p>I've found several solutions for this on the web that are for WCF web service and not ASP web service.</p>
  
  <p>Currently, I'm getting back a JSON response that says:</p>
  
  <pre><code>{"d":[{"__type":"NetworkFuzzWebSvc.Sessions","BaseUri":"http://localbox","SessionId":"43b8716f-40ab-43bf-8311-575c2ecd2730}]}
  </code></pre>
  
  <p>I need it to return:</p>
  
  <pre><code>{"Sessions":["BaseUri":"http://localbox","SessionId":"43b8716f-40ab-43bf-8311-575c2ecd2730}]}
  </code></pre>
  
  <p>Here is a copy of the webservice code that I'm using (NetFuzzWebSvc.asmx):</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Web;
  using System.Web.Services;
  using System.Web.Script.Services;
  
  namespace NetworkFuzzWebSvc
  {
      public class Sessions
      {
          public string BaseUri;
          public string SessionId;
      }
  
      /// &lt;summary&gt;
      /// Summary description for NetFuzzJson
      /// &lt;/summary&gt;
      [WebService(Namespace = "http://localbox")]
      [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  
      [ScriptService]
      public class NetFuzzJson : WebService
      {
          List&lt;Sessions&gt; Sessions = new List&lt;Sessions&gt;
          {
              new Sessions{
                          BaseUri = "http://localbox/", 
                          SessionId="43b8716f-40ab-43bf-8311-575c2ecd2730"
              }
          };
  
          [WebMethod]
          [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
          public List&lt;Sessions&gt; GetAllSessions()
          {
              return Sessions;
          }
      }  
  </code></pre>
  
  <p>Anyone have a solution to this?
  Thanks!  </p>