jquery ajax call return JSON parsing error

前端 未结 5 1282
走了就别回头了
走了就别回头了 2020-12-30 23:14

I am using jquery to call an ajax wcf method that returns a list of objects as a JSON string. The JSON string looks like this when inspecting it in fiddler2 (in TextView):

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 23:59

    Here, "application/json" is not a valid value for the dataType property. I changed it to "json" in my project and the same problem was solved.

    Please check details here (comment #7): http://bugs.jquery.com/ticket/8216

提交回复
热议问题