set controller response format to json