更新时间:2023-01-17 18:23:50
WCF不使用 JavascriptSerializer
。它使用DataContractJsonSerializer.是的,你可以用Json.NET通过写custom 的例举在following博客文章。
WCF doesn't use JavascriptSerializer
. It uses DataContractJsonSerializer. And yes, you can replace it with Json.NET by writing a custom message formatter as exemplified in the following blog post.