When I make an ajax call I am getting response as multiple json objects.
//here is the response when I make ajax call:
{"name":"suresh","class":"10th"},{"name":"suresh","class":"10th"}
want to put this response into array.
Could any one help me how to split the objects and put into array?
The response seems to be quite broken (if you have any chance to change it or have it changed then follow @tomtheman5‘s advice). If you expect it to always be like this in the future, you can use this dirty trick:
Use with caution though.