Add the ability to output stats to json