code: def get_prep_value(self, value):
          
          try:
              return json.dumps(value)
          except Exception as err:
              raise ValidationError(str(err))
docs: Convert value to JSON string before save