webservice in jQuery returns collection type
<p>I have an ASP.NET WebService that returns an object of List</p>

<pre><code>public class Students
{
    public string StudentName { get; set; }
     public int Age { get; set; }

}
</code></pre>

<p>I am accessing this webservice using this jQuery code</p>

<pre><code>$.ajax({
type: "POST",
url: "/Students.asmx/GetStudents",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) { 
$("#myDiv").html(msg.d);
}
});
</code></pre>

<p>But all i get is Object object.</p>

<p>How can I get the data in that object?</p>
