def to_python(self, value):
        if value == "":
            return None

        try:
            if isinstance(value, basestring):
                return json.loads(value)
            elif isinstance(value, bytes):
                return json.loads(value.decode('utf8'))
        except __HOLE__:
            pass
        return value
dataset/ETHPy150Open skorokithakis/django-annoying/annoying/fields.py/JSONField.to_python