What is the difference between JSON.NET DataContractJsonSerializer and the Newtonsoft JSON serializer

落花浮王杯 提交于 2019-12-30 05:44:41

问题


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


(source: newtonking.com)

Here is the feature comparison,

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



来源:https://stackoverflow.com/questions/17334930/what-is-the-difference-between-json-net-datacontractjsonserializer-and-the-newto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!