Added json controller.