Json output

Add support for basic JSON generation in Calendars
this seems quite meta and hacky.  Is this really the easiest way to initialize custom variables? Is this a ruby pattern I don't know about?