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