Overrides the default json media type, only if the response type is json, to allow rendering a json template