dist/jquery.schedule.js
function () {
      var $this = this;
      var data = [];

      $('.jqs-day', $this.element).each(function (index, day) {
        var periods = [];
        $('.jqs-period', day).each(function (index, period) {
          periods.push($this.periodData($(period)));
        });

        data.push({
          day: index,
          periods: periods
        });
      });

      return JSON.stringify(data);
    }
function () {
      var $this = this;
      var data = [];

      $('.jqs-day', $this.element).each(function (index, day) {
        var periods = [];
        $('.jqs-period', day).each(function (index, period) {
          periods.push($this.periodData($(period)));
        });

        data.push({
          day: index,
          periods: periods
        });
      });

      return JSON.stringify(data);
    }
function ( ) { var $this = this ; var data = [ ] ; $ ( '.jqs-day' , $this . element ) . each ( function ( index , day ) { var periods = [ ] ; $ ( '.jqs-period' , day ) . each ( function ( index , period ) { periods . push ( $this . periodData ( $ ( period ) ) ) ; } ) ; data . push ( { day : index , periods : periods } ) ; } ) ; return JSON . stringify ( data ) ; }
Export data to JSON string
@returns {string}
Export data to JSON string