public static void Main()
Product product = new Product();
product.Expiry = new DateTime(2008, 12, 28);
string json = JsonConvert.SerializeObject(product,
Newtonsoft.Json.Formatting.Indented,
new JsonSerializerSettings {
NullValueHandling = NullValueHandling.Ignore