清单无效的JSON。行:21,列:1,语法错误。无法加载清单。?

时间:2018-11-27 10:08:05

标签: javascript google-chrome browser manifest.json

{
    "name": "Extension",
    "version": "2.0.0",
    "manifest_version": 4,
    "description": "This is a Test.",
    "homepage_url": "https://example.com",
    "icons": {
        "16": "icons/16.png",
        "48": "icons/48.png",
        "128": "icons/128.png"
    },
    "options_page": "src/options/options.html",
    "background": {
        "scripts": ["src/test0/test1.js", "test2.js", "main_compiled.js"],
        "matches": [""],
        "js": ["bubble_compiled.js"],
        "css": ["bubble_gss.css"],
        "all_frames": true
    }

1 个答案:

答案 0 :(得分:1)

您还需要一个括号来结束“关闭”您的json。

{
    "name": "Extension",
    "version": "2.0.0",
    "manifest_version": 4,
    "description": "This is a Test.",
    "homepage_url": "https://example.com",
    "icons": {
        "16": "icons/16.png",
        "48": "icons/48.png",
        "128": "icons/128.png"
    },
    "options_page": "src/options/options.html",
    "background": {
        "scripts": ["src/test0/test1.js", "test2.js", "main_compiled.js"],
        "matches": [""],
        "js": ["bubble_compiled.js"],
        "css": ["bubble_gss.css"],
        "all_frames": true
    }
}