                  pass
          elif hasattr(obj, '__iter__'):
              return tuple(item for item in obj)
          return super(JSONEncoder, self).default(obj)
 
</s>
        elif (coreapi is not None) and isinstance(obj, (coreapi.Document, coreapi.Error)):
            raise RuntimeError(
                'Cannot return a coreapi object from a JSON view. '
                'You should be using a schema renderer instead for this view.'
            )
                  pass
          elif hasattr(obj, '__iter__'):
              return tuple(item for item in obj)
        elif (coreapi is not None) and isinstance(obj, (coreapi.Document, coreapi.Error)):
            raise RuntimeError(
                'Cannot return a coreapi object from a JSON view. '
                'You should be using a schema renderer instead for this view.'
            )
          return super(JSONEncoder, self).default(obj)
keep keep add keep
 Schemas & client libraries. (#4179)

* Added schema generation support.
* New tutorial section.
* API guide on schema generation.
* Topic guide on API clients.
rest_framework/utils/encoders.py