Reputation: 383
Is there any way to replace the WCF service application built-in JavascriptSerializer with Newtonsoft Json.Net json serializer?
Upvotes: 9
Views: 20924
Reputation: 1038710
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.
Upvotes: 17