refactor(json-stream.js): Consistent output stream usage (#3532)
refactor(json-stream.js): Consistent output stream usage (#3532)

### Description of the Change

* Made all output directly use `process.stdout`. 
  * `process.stdout` and `console.log` take different routes to get to same place
* Corrected ctor name.
* Updated documentation.

### Alternate Designs

N/A

### Benefits

Consistency. [Don't cross the streams](https://www.youtube.com/watch?v=wyKQe_i9yyo)!

### Possible Drawbacks

N/A

### Applicable issues

Fixes #3526
Fixes #3521
semver-patch

outsideris/mocha,mochajs/mocha,igwejk/mocha,outsideris/mocha,boneskull/mocha,adamgruber/mocha,igwejk/mocha,boneskull/mocha,mochajs/mocha,adamgruber/mocha,boneskull/mocha,mochajs/mocha,adamgruber/mocha