ASP.NET WebService encapsule ma réponse JSON avec des balises XML

Je ne sais pas où je vais mal de ce que je suis absent.

Je suis en train de construire un ASP.NET 2.0 (sur la .Net framework 3.5) de l'application Web et je suis y compris un webservice. Notez que c'est pas un projet MVC. Je souhaite exposer une méthode qui renvoie une chaîne JSON; formaté pour nourrir les jqGrid plugin jQuery.

C'est le préliminaire de la méthode de test j'ai mis en place dans mon service: grâce à (Phil Haack Guide pour MVC)

[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string getData()
{
    JavaScriptSerializer ser = new JavaScriptSerializer();

    var jsonData = new
    {
        total = 1, //we'll implement later 
        page = 1,
        records = 3, //implement later 
        rows = new[]{
          new {id = 1, cell = new[] {"1", "-7", "Is this a good question?", "yay"}},
          new {id = 2, cell = new[] {"2", "15", "Is this a blatant ripoff?", "yay"}},
          new {id = 3, cell = new[] {"3", "23", "Why is the sky blue?", "yay"}}
        }
    };

    return ser.Serialize(jsonData); //products.ToString();
}

Lors de l'invocation de cette est de retour (formaté pour plus de clarté):

<?xml version="1.0" encoding="utf-8" ?> 
<string  mlns="http://tempuri.org/">
{
  "total":1,
  "page":1,
  "records":3,
  "rows":
    [
      {"id":1,"cell":["1","-7","Is this a good question?","yay"]},
      {"id":2,"cell":["2","15","Is this a blatant ripoff?","yay"]},
      {"id":3,"cell":["3","23","Why is the sky blue?","yay"]}
    ]
}
</string> 

Comment puis-je obtenir la réponse précédente sans le xml emballages?

source d'informationauteur Mike