lib/reporters/json.js
function JSONReporter(detector) {
  BaseReporter.call(this, detector);

  detector.on('start', function() {
    process.stdout.write('[');
  });

  detector.on('end', function() {
    process.stdout.write("]\n");
  });
}
function JSONReporter(detector) {
  BaseReporter.call(this, detector);

  detector.on('start', function() {
    process.stdout.write('[');
  });

  detector.on('end', function() {
    process.stdout.write("]\n");
  });
}
function JSONReporter ( detector ) { BaseReporter . call ( this , detector ) ; detector . on ( 'start' , function ( ) { process . stdout . write ( '[' ) ; } ) ; detector . on ( 'end' , function ( ) { process . stdout . write ( "]\n" ) ; } ) ; }
A JSON reporter that displays the file, line number, value, associated line,
and context of any found magic number.

@constructor

@param {Detector} detector The instance on which to register its listeners
A JSON reporter that displays the file line number value associated line and context of any found magic number .