added json output in report.php