{"0":"1","ID":"1","1":"2017-10-21 12:39:23","Date":"2017-10-21 12:39:23","2":"Student1","Name":"Student1","3":"student1@stud.com","Email":"student1@stud.com","4":"89123456789","Phone":"89123456789","5":"\u042d\u0423-119","Group":"\u042d\u0423-119","6":"\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f","Comment":"\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f"}{"0":"2","ID":"2","1":"2017-10-21 20:20:49","Date":"2017-10-21 20:20:49","2":"\u0441\u0435\u0440\u0433\u0435\u0439","Name":"\u0441\u0435\u0440\u0433\u0435\u0439","3":"sad@dsfsd.com","Email":"sad@dsfsd.com","4":"89222222222","Phone":"89222222222","5":"\u042d\u0423-119","Group":"\u042d\u0423-119","6":"rrr","Comment":"rrr"} 

How to solve this problem?

I process

  var res = jQuery.parseJSON(data) 

    2 answers 2

    Divide into two different JSON:

     var json1 = {"0":"1","ID":"1","1":"2017-10-21 12:39:23","Date":"2017-10-21 12:39:23","2":"Student1","Name":"Student1","3":"student1@stud.com","Email":"student1@stud.com","4":"89123456789","Phone":"89123456789","5":"\u042d\u0423-119","Group":"\u042d\u0423-119","6":"\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f","Comment":"\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f"} var json2 = {"0":"2","ID":"2","1":"2017-10-21 20:20:49","Date":"2017-10-21 20:20:49","2":"\u0441\u0435\u0440\u0433\u0435\u0439","Name":"\u0441\u0435\u0440\u0433\u0435\u0439","3":"sad@dsfsd.com","Email":"sad@dsfsd.com","4":"89222222222","Phone":"89222222222","5":"\u042d\u0423-119","Group":"\u042d\u0423-119","6":"rrr","Comment":"rrr"} 

      Missing comma in

       \u043d\u0438\u044f"}{"0":"2","ID":"2" 

      must be

       \u043d\u0438\u044f"},{"0":"2","ID":"2" 

      and two JSON objects should be placed for example in an array. Add [at the beginning and] at the end.

      • and how can I put a comma? I get this data from the server - Sergey
      • If the server is yours, then edit on the server so that it sends a valid json. If not yours, then, for example, data.replace ("} {", "}, {"). Of course, if no combination is used within the data }{ - tilin
      • and where on the server to edit? - Sergey
      • apparently, where the data is transferred to json before being sent. - tilin
      • Added, does not help, swears at comma and var res = jQuery.parseJSON (data) - Sergey