convert value from python object to json

def process_bind_param(self, value, dialect):
        """convert value from python object to json"""
        if value is not None:
            value = simplejson.dumps(value)
        return value