What is the difference between JSON.NET DataContra

2019-02-11 21:42发布

问题:

Can someone help me.

What's the difference between the built in JSON.NET DataContractJsonSerializer and the Newtonsoft JSON serializer?

Is it correct that I can use one or the other with Web API and why would I choose one?

回答1:

You can find the comparison of the performance here

http://james.newtonking.com/projects/json/help/media/performance.png

Here is the feature comparison,

http://james.newtonking.com/projects/json/help/index.html?topic=html/JsonNetVsDotNetSerializers.htm