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

19,846

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.

Share:
19,846
iNc0ming
Author by

iNc0ming

Updated on June 16, 2022

Comments

  • iNc0ming
    iNc0ming almost 2 years

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