Pass Array to Asp webservice
<p>I have array need to pass that array to my ASP.Net Webservice</p>

<p>My array looks like this: </p>

<pre><code>{
    "lists" [
        {"F0":"LpSeries", "F1":"Description"},
        {"F0":"Second","F1":"StringValue"}
    ]
}
</code></pre>

<p>I use javascript like this :</p>

<pre><code>$.ajax({
    type: "POST",
    contentType: "application/json",
    data: jsonText,
    url: "LPService.asmx/GetDataTableFromArray",
    dataType: "json",
    success: function (data) {
        alert(data.d);
    },
    error: function (XMLHttpRequest, textStatus, errorThrown) {
        debugger;
    }
});
</code></pre>

<p>In webservice i have writen like this </p>

<pre><code>[WebInvoke(Method = "POST", UriTemplate = "")]
public DataTable X(RootObject root)
{
    DataTable dt = new DataTable();
    return dt;
    // do something with your root objects or its child objects...

    //return new HttpResponseMessage(HttpStatusCode.Created);
}
</code></pre>

<p>Here I have created a class for root object it looks like this </p>

<pre><code>public class RootObject
{
    public List&lt;Result&gt; Results { get; set; }
}

public class Result
{
    public string F0 { get; set; }
    public string F1 { get; set; }
    public string F2 { get; set; }
    public string F3 { get; set; }
    public string F4 { get; set; }
    public string F5 { get; set; }
    public string F6 { get; set; }
    public string F7 { get; set; }
}
</code></pre>

<p>I am unable to get the values. Please help me how to resolve this </p>
