In C# i have an array of Calendar objects
each Calendar object has an array of CalendarEvent objects
each CalendarEvent object has a Date and Name property
i want to convert this to Json object but i want to change the data structure a bit so in the json object a calendar is an array of dates and an array of names (breakdown the CalendarEvent object)
i want something like this:
var myObject = return Json(new
                {
                    Calendars = new[]
                    {
                         Dates = new [] {myDateArray};
                         Names = new [] {myNameArray};
                    }
                }