def METHOD_NAME(self, value):
    """Convert a string from the database to a Python value."""
    if not value:
        return None
    try:
        return json.loads(value)
    except ValueError:
        return value