code: function jsonSections(sections, block) {
  
    return sections.map(function(section) {
      // Temporary inserting of partial
      var partial = section;
      if (partial.markup() && partial.markup().toString().match(/^[^\n]+\.(html|hbs|pug)$/)) {
        partial.file = partial.markup().toString();
        partial.name = path.basename(partial.file, path.extname(partial.file));
        partial.file = path.dirname(block.filePath) + '/' + partial.file;
        partial.markupText = fs.readFileSync(partial.file, 'utf8');
        section.markup = function() {
          return partial.markupText;
        };
      }
  
      return {
        header: generateDescription(section.header(), {noWrapper: true}),
        description: generateDescription(section.description()),
        modifiers: jsonModifiers(section.modifiers()),
        deprecated: section.deprecated(),
        experimental: section.experimental(),
        reference: section.reference(),
        markup: section.markup() ? section.markup().toString() : null
      };
    });
  }
docs: Parses kss.KssSection to JSON