0

I've already seen this post. My question is about when the entire object is null.

MyClass x = null;
string json = JsonConvert.SerializeObject(x); // "\"null\""
x = JsonConvert.DeserializeObject<MyClass>(json, serializationsettings);

That errors no matter what I put for serializationSettings.

See Sharp
  • 379
  • 1
  • 4
  • 11

0 Answers0