def _unserialize(value):
    if not isinstance(value, six.string_types):
        return _cast_to_unicode(value)
    try:
        return _cast_to_unicode(json.loads(value))
    except __HOLE__:
        return _cast_to_unicode(value)
dataset/ETHPy150Open niwinz/djorm-pgarray/djorm_pgarray/fields.py/_unserialize