iNc0ming
iNc0ming

Reputation: 383

replace WCF built-in JavascriptSerializer with Newtonsoft Json.Net json serializer

Is there any way to replace the WCF service application built-in JavascriptSerializer with Newtonsoft Json.Net json serializer?

Upvotes: 9

Views: 20924

Answers (1)

Darin Dimitrov
Darin Dimitrov

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

Related Questions