I have a class definition that contains a property that returns an interface.
public class Foo
{
public int Number { get; set; }
public ISomething Thing { get; set; }
}
Attempting to serialize the Foo class using Json.NET gives me an error message like, "Could not create an instance of type 'ISomething'. ISomething may be an interface or abstract class."
Is there a Json.NET attribute or converter that would let me specify a concrete Something class to use during deserialization?