Write final JSON report also.