title: jQuery + Webservices: Webservice not returning JSON, only XML
body: <p>Looks like it just doesnt want to work...</p>
  
  <p>@ Webservice:</p>
  
  <pre><code>&lt;ScriptMethod(UseHttpGet:=False, ResponseFormat:=ResponseFormat.Json), WebMethod()&gt; _
      Public Function LoginDB(ByVal user As String, ByVal pass As String) As String
          global.user = user
          global.pass = pass
          If (&lt;&lt;lots of code to check if user is valid&gt;&gt;) Then
              Return "1"
          Else
              Return "0"
          End If
      End Function
  </code></pre>
  
  <p>The webservice DOES work, if the user is valid, returns 1 otherwise 0. But I always get it as XML </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;string xmlns="http://tempuri.org/"&gt;"0"&lt;/string&gt;
  </code></pre>
  
  <p>@Jquery:</p>
  
  <pre><code>$.ajax({
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  url: "Services/Autenticacao.asmx/LoginDB",
                  data: "{'user':'ale','pass':'123'}",
                  dataType: "json",
                  success: function(data) {
                      alert(data);
                  },
  .....
  </code></pre>
  
  <p>Anyone?</p>