The earlier version had two problems with the json output:
It failed to reset the statistics per interval correctly. That caused
contributions of authors that are earlier in the iteration order to show
up in every subsequent statistic.
It printed the per interval statistics for the JSON output before
computing them.
The earlier version had two problems with the json output: