def _set_content_type(self, system):
        """ Set response content type """
        request = system.get('request')
        if request:
            response = request.response
            ct = response.content_type
            if ct == response.default_content_type:
                response.content_type = 'application/json'
Set response content type