lib/reporting/json/JSONReporter.js
function JSONReporter(dir, config) {
    this._config = config;

    var fileName = config.file || DEFAULT_FILE_NAME;
    this._filePath = path.join(dir, fileName);
}
function JSONReporter(dir, config) {
    this._config = config;

    var fileName = config.file || DEFAULT_FILE_NAME;
    this._filePath = path.join(dir, fileName);
}
function JSONReporter ( dir , config ) { this . _config = config ; var fileName = config . file || DEFAULT_FILE_NAME ; this . _filePath = path . join ( dir , fileName ) ; }
JSON report generator.

@param {string} dir - Report directory
@param {object=} config - Reporter configuration
@constructor
JSON report generator .