title: Fullcalendar transform json
body: <p>I'm currently using Fullcalendar.io for presenting a calendar but the documentation is poor about a function : <a href="http://fullcalendar.io/docs/event_data/eventDataTransform/" rel="nofollow">eventDataTransform</a></p>
  
  <p>Indeed, I would like tell to fullcalendar, look to this part of my JSON (from AJAX request) for your data.</p>
  
  <p>Because in JSON object, I send my csrf token.
  My JSON object would look like this:</p>
  
  <pre><code>{
    "data": [ ...(json for fullcalendar)...],
    "csrf": "randomString"
  }
  </code></pre>
  
  <p>And I want to tell to fullcalendar that its data are in jsonObj.data</p>
  
  <p>My fullcalendar init but eventDataTransform doesn't work:</p>
  
  <pre><code>$('#calendar').fullCalendar({
          header: {
              left: 'prev,next today',
              center: 'title',
              right: 'agendaWeek,agendaDay'
          },
          eventDataTransform: function (json) {
              return json.data;
          },
          aspectRatio: 2,
          defaultView: 'agendaWeek',
          timezone: 'Europe/Paris',
          scrollTime: h + ':' + m + ':' + s,
          lang: 'fr',
          defaultTimedEventDuration: '01:00:00',
          allDaySlot: false,
          buttonIcons: false,
          weekNumbers: true,
          editable: false,
          axisFormat: 'HH:mm',
          timeFormat: {
              agenda: 'HH:mm'
          },
          eventLimit: false,
          eventSources: [
              //dispo
              {
                  url: 'planning/on',
                  color: '#5cb85c',
                  textColor: 'white',
                  type: 'POST'
              },
              //off
              {
                  url: 'planning/off',
                  color: '#757575',
                  textColor: 'white',
                  type: 'POST'
              },
              //rdv
              {
                  url: 'planning/rdv',
                  color: '#0086b3',
                  textColor: 'white',
                  type: 'POST'
              },
              //audiotel
              {
                  url: 'planning/audiotel',
                  color: '#a94442',
                  textColor: 'white',
                  type: 'POST'
              }
          ]
      });
  </code></pre>