C# JsonObject.add 方法报错

C# JsonObject.add 方法报错

问题描述:

System.Json.dll 与 System.net.Json.dll 有啥区别呀?
如果用 System.net.Json.dll JsonObject 是一个抽象类 不用new 也没有 add方法。
用 System.Json.dll 时。
JsonObject o=new JsonObject();
o.Add("ttt","ttt");此处会报下面的错:
錯誤1型別 'System.Uri' 是定義在未參考的組件中。您必須加入參考至組件 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'。

string 与 JsonValue 不是可以自动转换呀??? 不懂