When deserializing JSON from within a C# program, should I ever need to use anything other than JavaScriptSerializer?

前端 未结 3 2087
广开言路
广开言路 2021-02-15 16:11

.NET provides the JavaScriptSerializer class in the System.Web.Script.Serialization namespace. (provided in System.Web.Extensions.dll)

It was originally intended to sup

3条回答
  •  广开言路
    2021-02-15 16:41

    I use the JavaScriptSerializer on a wide variety of scenarios, it never let me down, and never needed to look elsewhere for other solutions... :)

    ...but i do know that JSON.net has some added values like LINQ to JSON, which i never needed, and nice JSON formatting but as Serializing goes JavaScriptSerializer does the work fine.

提交回复
热议问题