开发者

Where is the System.Runtime.Serialization.Json namespace?

开发者 https://www.devze.com 2022-12-28 03:35 出处:网络
I\'ve added the reference to System.Runtime.Serialization dll to my project but still can\'t find the System.Runtime.Serialization.Json namespace and hence can\'t find the DataContractJsonSerializer c

I've added the reference to System.Runtime.Serialization dll to my project but still can't find the System.Runtime.Serialization.Json namespace and hence can't find the DataContractJsonSerializer cla开发者_运维知识库ss. What am I missing here?


Try in System.ServiceModel.Web.dll


Are you running .NET 2.0 ? Its first supported in 3.5 and 4.0 check here.


I think this library is now deprecated in favour of Json.NET. JsonObject is a JObject and uses Json.NET library.

Documentation


You might just need to update it in your VS, it can be added in the project but not updated

0

精彩评论

暂无评论...
验证码 换一张
取 消