解析json列表,转换成utf-8

def _decode_list(data):
    """
    解析json列表,转换成utf-8
    """
    if six.PY3:
        return data
    rv = []
    for item in data:
        if not isinstance(item, text_type):
            item = item.encode('utf-8')
        elif isinstance(item, list):
            item = _decode_list(item)
        rv.append(item)
    return rv