title: ASP.NET WebMethod Returns JSON wrapped in quotes
body: <p>I have an asp.net page with a WebMethod on it to pass JSON back to my javascript. </p>
  
  <p>Bellow is the web method:</p>
  
  <pre><code>[WebMethod]
  public static string getData(Dictionary&lt;string, string&gt; d) {
  
      string response = "{ \"firstname\": \"John\", \"lastname\": \"Smith\" }";
  
      return response;
  
  }
  </code></pre>
  
  <p>When this is returned to the client it is formatted as follows:</p>
  
  <pre><code>{ \"d\": \"{ \"firstname\": \"John\", \"lastname\": \"Smith\" }\" }
  </code></pre>
  
  <p>The problem is the double quotes wrapping everything under 'd'. Is there something I've missed in the web method or some other means of returning the data without the quotes? I don't really want to be stripping it out on the client everytime. Also I've seen other articles where this doesn't happen.</p>
  
  <p>Any help would be appreciated thanks.</p>