This is a must known thing for the developers who are new to Javascript. When you send the data from in JSON format from server to client, we need to parse the thing into JSON format in Javascript.
var jsonobject = eval(responsetext);
Where responsetext is json data in String format.