Hi, bhoomi
Have a look at this line:
return $.map(data, function (item) {…});
At this point data is just a STRING containing JSON object… so for us to be able to use the object – we need to convert the string using eval() function.
So I think the solution for your trouble is to modify the line like:
return $.map(eval(data), function (item) {…});
Please post a reply if this fixes the issue.