   rubocopCommand: ->
     commandWithArgs = atom.config.get('rubocop-auto-correct.rubocopCommandPath')
                                 .split(/\s+/).filter((i) -> i)
+                                .concat(["--format", "json"])
     [commandWithArgs[0], commandWithArgs[1..]]
 
   autoCorrectBuffer: (buffer)  ->

        .concat(@projectRootRubocopConfig(filePath))

      stdout = (output) =>
        @rubocopOutput(filePath.replace(/.+\//, ""), output)
      stderr = (output) =>
        @rubocopOutput(filePath.replace(/.+\//, ""), output)

      which command, (err) =>
        if (err)

        else
          rubocop = spawnSync(command, args, { encoding: 'utf-8', timeout: 5000 })
          if (rubocop.status != 0)
            @rubocopOutput(rubocop.stderr)
          else
            buffer.setTextViaDiff(fs.readFileSync(tempFilePath, 'utf-8'))
            @rubocopOutput(rubocop.stdout)

  autoCorrectFile: (filePath)  ->
    rubocopCommand = @rubocopCommand()
