json 发生parsererror错误
本帖最后由 miker9 于 2013-03-04 09:08:24 编辑
用C#后台stringbuilder生成的一段JSON,在线验证是通过的,但是发送到前台时候发生parsererror错误,htttp状态是200.
编码什么都改了,
Context.Response.ContentType = "application/json";
Context.Response.ContentEncoding = System.Text.Encoding.UTF8;还是不行。。
JSON如下:
{"status":100,"count":"8","data":[{"zdno":"2","id":"\u0031","comment_id":"\u0031\u0030\u0030\u0031","create_time":"\u0039\u0036\u0037\u0038","parent_id":"\u0030","sortPath":"\u0030","clickNumber":"\u0030","username":"\u0033\u0033\u0033\u0033\u0033\u0033","body":"\u4e54\u5e03\u65af\u7559\u5728\u6211\u5fc3\u4e2d","from":"\u0030","replycount":"\u0031","type":"\u0064\u006f\u005f\u0072\u0065\u0070\u006c\u0079"}]}
------解决方案--------------------http://demon.tw/programming/jquery-ajax-parsererror.html
------解决方案--------------------alert下看返回了什么
------解决方案--------------------换种方式封装数据