【问题标题】:JSON: Trailing comma error still present after removing the trailing comma?JSON:删除尾随逗号后仍然存在尾随逗号错误?
【发布时间】:2020-01-18 00:10:59
【问题描述】:

这是我的 JSON 文件:

{
  "name": "Testing",
  "version": "1.0",
  "description": "1, 2, 3",
  "permissions": ["storage"],
  "background": {
    "scripts": ["script.js"],
    "persistent": false
  },
  "page_action": {
    "default_popup": "index.html",
  },
  "manifest_version": 2
}

我正在尝试创建 chrome 扩展程序,但遇到了错误。当我尝试上传项目时,它在 manifest.json 的第 12 行(最后一个逗号)上给我一个错误,说不允许使用尾随逗号,但是 当我去删除它时,错误仍然存​​在.知道为什么吗? 谢谢!

【问题讨论】:

  • chrome://extensions页面的错误列表没有自动清除,UI中有一个按钮。

标签: html json google-chrome-extension


【解决方案1】:

请尝试删除第 11 行 "index.html" 后面的逗号。

这是我看到的唯一可能的问题。

【讨论】:

    猜你喜欢
    • 2021-01-25
    • 1970-01-01
    • 2019-02-12
    • 1970-01-01
    • 2022-11-13
    • 1970-01-01
    • 1970-01-01
    • 2021-05-16
    • 2016-03-24
    相关资源
    最近更新 更多