public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { var t = long.Parse((string)reader.Value); if (t == 0) { return null; } return new DateTime(1970, 1, 1).AddMilliseconds(t); }