added Json response; allow runtime Reponse type changed in the controller