I know there's a DataContractJsonSerializer that comes now with the .net framework and is used by wcf ajax enabled services. However, I've noticed there's also a json.net project over at codeplex. I'm wondering if there are any advantages or features that are present in the codeplex project that are missing from the .net framework.
Json.net is made by 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.
Obsolete. The value types allowed by the JsonSchema. JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.
The Newtonsoft. JSON namespace provides classes that are used to implement the core services of the framework. It provides methods for converting between . NET types and JSON types.
json.net has next pros:
\/Date(123)\/
MS AJAX style)There are a lot of explanation how its reflects on WCF developing here.
Also, regarding to http://banachowski.com/deprogramming/2010/08/json-net-vs-net-datacontractjsonserializer/ it has better performance, but this results can be argued.
I have used DataContractSerializer
and JavaScriptSerializer
and I love them. However JSON.Net is quite more feature rich and was available long before .NET had such features.
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