Is there any way to replace the WCF service application built-in JavascriptSerializer with Newtonsoft Json.Net json serializer?
Yet Newtonsoft. Json was basically scrapped by Microsoft with the coming of . NET Core 3.0 in favor of its newer offering designed for better performance, System. Text.
Text. Json is much faster than the Newtonsoft. Json.
Json.net is made by newtonsoft.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With