title: InvalidJSONprimitive:ABC Ajax call in Asp.net
body: <p>my script     </p>
  
  <pre><code>&lt;script type ="text/javascript"&gt;
       $(document).ready(function () {
           $('#&lt;%=Button1.ClientID %&gt;').click(function () {
               var ABC = 'TEST';
               $.ajax({
                   type: "POST",
                   url: "Default.aspx/ServerSideMethod"  ,
                   data: "{ EmailAddress : ABC }",
                   contentType: "application/json; charset=utf-8",
                   dataType: "json",
                   async: true,
                   cache: false,
                   success: function (msg) {
                       alert(msg);
                       $('#myDiv').text(msg.d);
                   }
               })
               return false;
           });
       });
       &lt;/script&gt;
  </code></pre>
  
  <p>Code behind method</p>
  
  <pre><code>[WebMethod]
  public static string ServerSideMethod(string EmailAddress)
  {
      return EmailAddress ;
  }
  
  &lt;asp:Button ID="Button1" runat="server" Text="Click" /&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;div id="myDiv"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>at button click it give me <strong>InvalidJSONprimitive:ABC</strong> this error can any body tell what i m doing wron.</p>