async function createJson(sourceDir, config) {
  config = config || {};

  return sassdoc.parse(sourceDir, config).then(
    data => {
      return data;
    },
    err => {
      console.error(err);
    }
  );
}
async function createJson(sourceDir, config) {
  config = config || {};

  return sassdoc.parse(sourceDir, config).then(
    data => {
      return data;
    },
    err => {
      console.error(err);
    }
  );
}
async function createJson ( sourceDir , config ) { config = config || { } ; return sassdoc . parse ( sourceDir , config ) . then ( data => { return data ; } , err => { console . error ( err ) ; } ) ; }
Create a JSON file of documented Sass items
@see {@link http://sassdoc.com/configuration/|Sassdoc configuration}
@param {string} sourceDir - source directory
@param {Object} config - configuration object
@return {Object} json object
Create a JSON file of documented Sass items