ASP.NET WebService is Wrapping my JSON response with XML tags

前端 未结 6 1102
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 11:49

I\'m not sure where I\'m going wrong of what I\'m missing.

I\'m building an ASP.NET 2.0 (on the .Net 3.5 framework) Web application and I am including a webservice.

6条回答
  •  Happy的楠姐
    2020-12-03 12:05

    When you mark the service as a ScriptService, it automatically handles the JSON serialization. You shouldn't manually serialize the response. See this stack overflow entry for more detail.

提交回复
热议问题