title: serializer call is showing an TypeError: Object of type 'ListSerializer' is not JSON serializable?
body: <p>Iam trying to call a serializer in django GET request But it shows up an
  TypeError: Object of type 'ListSerializer' is not JSON serializable
  Please help me if i went wrong somewhere. Thanks in Advance.</p>
  <pre class="lang-py prettyprint-override"><code>class Member(MemberMixin, APIView):
  
      serializer_class = MemberSerializers
  
      def get(self, request, format=None):
          objects = MemberSerializers(Members.objects.all(), many=True)
          self.meta_data = &quot;GET&quot;
          self.module = &quot;Member&quot;
          self.data = objects
          if objects is None:
              self.error = &quot;datas are not found&quot;
              return Response(self.response_obj, status=status.HTTP_404_NOT_FOUND)
          else:
              return Response(self.response_obj, status=status.HTTP_200_OK)
          pass
  </code></pre>
  <p>The serializer code is as follows:</p>
  <pre class="lang-py prettyprint-override"><code>from .models import Members
  
  
  class MemberSerializers(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = Members
          fields = ('username', 'fullname', 'phone','address','memberid')
          # exclude = ['']
      pass
  </code></pre>
  <p>MemberMixins code as follows:</p>
  <pre class="lang-py prettyprint-override"><code>class MemberMixin(object):
      meta_data = dict()
      data = dict()
      error = dict()
  
      def __init__(self):
          self.meta_data = dict()
          self.data = dict()
          self.error = dict()
          self.json_schema = None
          super().__init__()
  
      @property
      def response_obj(self):
          resp = dict()
          resp['meta'] = self.meta_data
          if self.error:
              resp['error'] = self.error
          else:
              resp['data'] = {
                  'detail': self.data,
              }
          return resp
  
      pass
  </code></pre>