          super(JSONField, self).__init__(*args, **kwargs)
  
      def to_internal_value(self, data):
          try:
              if self.binary:
                  if isinstance(data, six.binary_type):
                      data = data.decode('utf-8')
                  return json.loads(data)
              else:
                  json.dumps(data)
 
</s>
            if self.binary or getattr(data, 'is_json_string', False):
          super(JSONField, self).__init__(*args, **kwargs)
  
      def to_internal_value(self, data):
          try:
            if self.binary or getattr(data, 'is_json_string', False):
                  if isinstance(data, six.binary_type):
                      data = data.decode('utf-8')
                  return json.loads(data)
              else:
                  json.dumps(data)
keep keep keep keep replace keep keep keep keep keep
 When HTML form input is used with JSONField, treat the input as a JSON encoded string, not a JSON primative. (#4565)
rest_framework/fields.py