              return value
          if value in self.empty_values:
              return None
          try:
              converted = json.loads(value)
          except ValueError:
              raise forms.ValidationError(
                  self.error_messages['invalid'],
 
</s> remove             return json.loads(value)
 </s> add             converted = json.loads(value)
        elif isinstance(value, (list, dict, int, float, JSONString)):
            return value
              return value
          if value in self.empty_values:
              return None
        elif isinstance(value, (list, dict, int, float, JSONString)):
            return value
          try:
              converted = json.loads(value)
          except ValueError:
              raise forms.ValidationError(
                  self.error_messages['invalid'],
keep keep add keep keep keep keep keep
 Refs #27003 -- Fixed JSONField crash on converted values. 
django/contrib/postgres/forms/jsonb.py