docs: function (data) {
      this.data.elapsedTime = data.elapsedTime;
      this.data.status = data.status;
      this.data.assertions = data.assertions;
      this.data.assertionsFailed = data.assertionsFailed;
      this.data.assertionsPassed = data.assertionsPassed;
  
      var contents = JSON.stringify(this.data, false, 4);
  
      if (path.extname(this.dest) !== '.json') {
        this.dest = this.dest + '/dalek.json';
      }
  
      this.events.emit('report:written', {type: 'json', dest: this.dest});
      this._recursiveMakeDirSync(path.dirname(this.dest.replace(path.basename(this.dest, ''))));
      fs.writeFileSync(this.dest, contents, 'utf8');
      return this;
    }