def get_db_prep_value(self, value, connection, prepared=False):
        if value is None or value == '':
            return value
        try:
            value = json.dumps(dict(value))
        except __HOLE__:
            value = None
        return value
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/db.py/StatsDictField.get_db_prep_value