Factored out writing json file to service.
Added json report display to controller.