为什么 ServiceStack.Text DeserializeFromString 不能转换 ISODate 格式。
例如,我有类似的 json 字符串
{ "Count" : 4, "Type" : 1, "Date" : ISODate("2013-04-12T00:00:00Z") }
和班级
public class TestClass
{
public int Count { get; set; }
public int Type { get; set; }
public DateTime Date { get; set; }
}
当我尝试从字符串反序列化时
JsonSerializer.DeserializeFromString<TestClass>(json);
给我输出