import json
# 原始字符串
raw_string = '[]|1007651102246_PC--chefgapparoniTTV|'
# 提取 UID
uid = 1007651102246 # 假設從字符串中提取的 uid
name = "acc_Jacky" # 根據需要指定的名稱
# 創建字典
data = {
"uid": uid,
"name": name
}
# 轉換為 JSON
json_data = json.dumps(data)
print(json_data)
aW1wb3J0IGpzb24KCiMg5Y6f5aeL5a2X56ym5LiyCnJhd19zdHJpbmcgPSAnW118MTAwNzY1MTEwMjI0Nl9QQy0tY2hlZmdhcHBhcm9uaVRUVnwnCgojIOaPkOWPliBVSUQKdWlkID0gMTAwNzY1MTEwMjI0NiAgIyDlgYfoqK3lvp7lrZfnrKbkuLLkuK3mj5Dlj5bnmoQgdWlkCm5hbWUgPSAiYWNjX0phY2t5IiAgICMg5qC55pOa6ZyA6KaB5oyH5a6a55qE5ZCN56ixCgojIOWJteW7uuWtl+WFuApkYXRhID0gewogICAgInVpZCI6IHVpZCwKICAgICJuYW1lIjogbmFtZQp9CgojIOi9ieaPm+eCuiBKU09OCmpzb25fZGF0YSA9IGpzb24uZHVtcHMoZGF0YSkKcHJpbnQoanNvbl9kYXRhKQ==