What's the difference between DataContractJsonSerializer and JavaScriptSerializer?

后端 未结 3 541
野趣味
野趣味 2020-12-04 08:24

The .NET Framework ships with System.Runtime.Serialization.Json.DataContractJsonSerializer and System.Web.Script.Serialization.JavaScriptSerializer, both of which de/seriali

3条回答
  •  自闭症患者
    2020-12-04 09:03

    Personally, I think that DataContractJsonSerializer reeks of over-engineering. I'd skip it and go with JavaScriptSerializer. In the event where JavaScriptSerializer isn't available, you can use FridayThe13th (a library I wrote ;p).

提交回复
热议问题