如何引用 System.Runtime.Serialization.Json;

只引用一个System.Runtime.Serialization 是不够的,

还要添加 System.ServiceModel

System.ServiceModel.Web

 

的引用,OK

 

System.Runtime.Serialization.Json 出来了,可以开始对JSON字符串转为实体了。

命名空间 不存在类型或命名空间名称 json

原文地址:https://www.cnblogs.com/scgw/p/1707041.html