Chrome 扩展:清单无效 JSON。在第 22 行不允许尾随逗号

Chrome Extension: Manifest is not valid JSON. at line 22 Trailing comma not allowed

尝试加载我的插件时出现错误 -> Manifest is not valid JSON. at line 22 Trailing comma not allowed

manifest.json:

    {
    "name": "My First Plugin",
    "description" : "myfirstplugin",
    "version": "1.0",
    "manifest_version": 2,
    "background": {
        "scripts": ["script.js"],
        "persistent": false
    },
    "commands": {
    "smile_cmd": {
      "suggested_key": {
        "default": "Ctrl+X"
      },
      "description": "Nothing"
    },
    "yell_cmd": {
      "suggested_key": {
        "windows": "Ctrl+Y"
      }
    },
}

当我删除底部的逗号时,它会给我 Manifest is not valid JSON. Syntax Error

谁能看出我做错了什么?

正如@wOxxOm 所说,但也要确保你有匹配的括号。

{
    "name": "My First Plugin",
    "description": "myfirstplugin",
    "version": "1.0",
    "manifest_version": 2,
    "background": {
        "scripts": [
            "script.js"
        ],
        "persistent": false
    },
    "commands": {
        "smile_cmd": {
            "suggested_key": {
                "default": "Ctrl+X"
            },
            "description": "Nothing"
        },
        "yell_cmd": {
            "suggested_key": {
                "windows": "Ctrl+Y"
            }
        }
    }
}