code: def data(self):
          
          if self.request.method == 'GET':
              return self.request.GET
          else:
              assert self.request.META['CONTENT_TYPE'].startswith('application/json')
              charset = self.request.encoding or settings.DEFAULT_CHARSET
              return json.loads(self.request.body.decode(charset))
docs: Helper class for parsing JSON POST data into a Python object.