code: def decode_dict(data):
      
      if six.PY3:
          return data
      rv = {}
      for key, value in iteritems(data):
          if isinstance(key, text_type):
              key = key.encode('utf-8')
  
          if isinstance(value, text_type):
              value = value.encode('utf-8')
          elif isinstance(value, list):
              value = _decode_list(value)
          # no need to recurse into dict, json library will do that
          rv[key] = value
      return rv
docs: 解析json字典,转换成utf-8