Parse array of values - jQuery
<p>Am calling a webservice from my jQuery to fetch both <code>Staff</code> and <code>Student</code> details. In my web service I have values for Staff as well as Students, and am returning these as array of strings. While returning values am just serializing these two as </p>

<pre><code>[WebMethod(EnableSession = true)]
public string[] fetchStudentStaff(string sectionId)
{
string student;
string staff;
////
////
student = jsonSerialize.Serialize(studentList);
staff = jsonSerialize.Serialize(staffList);

return new string[] { student, staff };
}
</code></pre>

<p>here I've a variable called <code>category</code> for mentioning whether he is a staff or student. and am receiving this in my jQuery part as,</p>

<pre><code>    [
    [
        [
            {
                "Name": "shanish",
                "StudentId": "12",
                "Category": "Student",
                "Mobile": "8147708287",
                "Email": "shanish@gmail.com"
            }
        ]
    ],
    [
        [
            {
                "Name": "shanish",
                "StaffId": "78",
                "Category": "Staff",
                "Mobile": "8147708287",
                "Email": "shanish@gmail.com"
            }
        ]
    ]
]
</code></pre>

<p>here, I tried using <code>jQuery.parseJSON(data.d)</code> to group the result, but it results <code>null</code>, I need to categorize the result with <code>student</code> and <code>staff</code>, here I have one student and one staff, for the case of 5 student and 2 staffs, I need to store students in a separate variable and 2 staffs in a separate variable.</p>

<p>I dunno how to achieve this, can anyone help me here...Thanks in advance</p>
