Code improvement.
Implements json report.