问题描述:

I tried to serialize a simple object inside the PCL it just returns a "{}" string. However, it does not throw any exceptions.

var test = new

{

Email = email,

Password = password,

Username = username

};

var testJson = JsonConvert.SerializeObject(test);

When I inspect the JsonConvertobject inside the VS debugger it says that the method SerializeObject is an unknown member. Furthermore, when I inspect the DeserializeMethod, it says:

Could not resolve type: global::Newtonsoft.Json.JsonConvert.DeserializeObject<DefaultResponse>

Both methods are displayed as variables inside the debugger.

相关阅读:
Top