  class JSONEmitter(BaseEmitter):
      """Emitter which serializes to JSON"""
      media_type = 'application/json'
  
      def emit(self, output=NoContent, verbose=False):
          if output is NoContent:
              return ''
          if verbose:
              return json.dumps(output, indent=4, sort_keys=True)
          return json.dumps(output)
  
 
</s> remove     def emit(self, output=NoContent, verbose=False):
        if output is NoContent:
 </s> add     def emit(self, output=None, verbose=False):
        if output is None: </s> remove     def emit(self, output=NoContent, verbose=False):
        if output is NoContent:
 </s> add     def emit(self, output=None, verbose=False):
        if output is None: </s> remove         if output is NoContent:
 </s> add         if output is None: </s> remove     def emit(self, output=NoContent, verbose=False):
 </s> add     def emit(self, output=None, verbose=False): </s> remove     def emit(self, output=NoContent):
 </s> add     def emit(self, output=None):
    def emit(self, output=None, verbose=False):
        if output is None:
  class JSONEmitter(BaseEmitter):
      """Emitter which serializes to JSON"""
      media_type = 'application/json'
  
    def emit(self, output=None, verbose=False):
        if output is None:
    def emit(self, output=None, verbose=False):
        if output is None:
              return ''
          if verbose:
              return json.dumps(output, indent=4, sort_keys=True)
          return json.dumps(output)
  
keep keep keep keep replace replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/emitters.py