using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
public static void Main()
var period = new Period{Count = 1, Foo = "bar", Start = DateTime.Now, End = DateTime.Now.AddDays(1)};
var tempo = new Tempo{Value = 1, Period = new Periodic {Start = period.Start, End = period.End} };
Console.WriteLine(JsonConvert.SerializeObject(tempo));