JQuery getJSON - ajax parseerror

后端 未结 17 1903
南笙
南笙 2020-12-01 13:04

I\'ve tried to parse the following json response with both the JQuery getJSON and ajax:

[{\"iId\":\"1\",\"heading\":\"Management Services\",\"body\":\"

17条回答
  •  被撕碎了的回忆
    2020-12-01 13:28

    in my case, the error was caused by a html tag in the json.

    INCORRECT (parsererror)

    {"msg": "Gracias,< br >Nos pondremos en contacto."}
    

    CORRECT

    {"msg": "Gracias, nos pondremos en contacto."}
    

    BROWSER: IE7/IE8

提交回复
热议问题