Transform JSON field names in feed to match FullCalendar jQuery plugin's Event object format

FullCalendar jQuery plugin can help you show your own events in a calendar when the event data is in a specified format. If your JSON feed data follows a different schema, FullCalendar has a way for you to adapt the field names to match FullCalendar's Event object format.

The following snippet shows how a Azure Mobile Services generated data feed can have its field names modified so that it can be be hooked to FullCalendar. While you navigate across months in the calendar the relevant data will be pulled automatically.

Link to code snippet on Github Gist

In the snippet, start and end dates are UNIX-style dates. For the Azure Mobile Services endpoint to understand the date, it is converted to ISO 8601 format with the JavaScript Date object's toISOString() method.

Comments

Popular posts from this blog

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

Gartner Magic Quadrant for Strategic Cloud Platform Services