You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

JSONLint解析失败,请协助定位JSON配置中的语法错误

JSON解析错误排查&修复
  • 错误根源:

    1. 提前闭合了最外层大括号并多打了逗号——在"removeBrokenImages": {}后面错误添加了},,导致JSON解析器认为整个对象已结束,后续内容变成无效代码。
    2. 重复定义了removeBlacklisted和removeBrokenImages两个键,同一个JSON对象内键名必须唯一,重复会触发解析异常。
  • 修正后的完整JSON代码:

{
    "processImages": true,
    "processAnimatedMedia": true,
    "similarityTolerance": 5,
    "onUserReply": "reportBot",
    "reposts": {
        "smallScore": 50,
        "smallScoreRepostDays": 10,
        "mediumScore": 500,
        "mediumScoreRepostDays": 50,
        "largeScore": 1000,
        "largeScoreRepostDays": 100,
        "topScore": 3000,
        "approveIfOverRepostDays": false,
        "reflairApprovedReposts": false,
        "actionRepostsIfDeleted": false,
        "action": "remove"
    },
    "removeBlacklisted": {},
    "removeBrokenImages": {},
    "removalMessage": "Sorry BRO!, your post has been removed as it appears to be a repost.",
    "allTimeTopRemovalMessage": "Sorry BRO!, your post has been removed as it appears to be a repost of an all-time top post.",
    "fullRemovalMessage": "Hey {{author}}, your post has been removed as it appears to be a repost. Here's a link to the previous submission by you: {{last_submission_link}} posted {{time_ago}} ago.",
    "actionAll": false
}

内容的提问来源于stack exchange,提问作者BKD

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.28 15:37:07