code: def process_bind_param(self, value, dialect):  # type: (typing.Any, DefaultDialect) -> typing.Union[str, typing.Any]
          
          if self.__use_json(dialect) or value is None:
              return value
  
          return self.__json_codec.dumps(value, ensure_ascii=not self.__enforce_unicode)
docs: Encode data, if required.