Does .NET 4 have a built-in JSON serializer/deserializer?

后端 未结 4 1511
遇见更好的自我
遇见更好的自我 2020-11-28 07:06

Does .NET 4 come with any class that serializes/deserializes JSON data?

  • I know there are 3rd-party libraries, such as JSON.NET, but I am looking for somethi

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 08:09

    There's the JavaScriptSerializer class (although you will need to reference the System.Web.Extensions assembly the class works perfectly fine in WinForms/WPF applications). Also even if the DataContractJsonSerializer class was designed for WCF it works fine in client applications.

提交回复
热议问题