'Convert our string value to JSON after we load it from the DB'

def to_python(self, value):

    if ((value is None) or (value == '')):
        return {}
    elif isinstance(value, six.string_types):
        res = loads(value)
        if isinstance(res, dict):
            return JSONDict(**res)
        elif isinstance(res, six.string_types):
            return JSONUnicode(res)
        elif isinstance(res, list):
            return JSONList(res)
        return res
    else:
        return value
