Generate JSON output of input file aggregate statistics, instead of old and busted line output