google-chrome - list .json :34:1: an object must end with '}'

标签 google-chrome google-chrome-extension google-chrome-devtools

我开发了一个扩展并尝试上传它。但它给出了错误:manifest.json:34:1: object must end with '}'.

任何帮助将不胜感激。 这是 manifest.json 的内容:

{
"manifest_version" :2,
"name": "Text to Speech",
"version" :"1.0.0",
"description" :"Indian language text to speech extension. Developed under TDIL programme by TTS    consortium",
"options_page": "options.html",
"browser_action": {
"default_icon": {                    // optional
  "19": "images/text2voice.png"           // optional
},
"default_title": "Indian language TTS",      // optional; shown in tooltip
"default_popup": "popup.html"       // optional
},
"icons": { "16": "images/t2v-48.png",
       "48": "images/t2v-48.png",
      "128": "images/t2v-128.png" },

"background": {
"page": "background.html"
},
 "content_scripts": [
{
    "matches": ["<all_urls>"], //content script will be injected in all urls
  "js": ["content_script.js"]
  }
],

"permissions": [ //permitted to access following pages
"http://*/*",
"https://*/*",
"contextMenus",
"tabs"
 ]  
}

最佳答案

您的评论,例如 //options 正在破坏您的 json。请尝试将 manifest.json 验证器(http://jsonlint.com)的全部内容放入并查看错误。

关于google-chrome - list .json :34:1: an object must end with '}' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22956323/

相关文章:

sockets - 在 Chrome 扩展程序中作为 TCP 服务器监听的正确方法

google-chrome - 使用 declarativeNetRequest 进行动态重定向

css - 在 Google Chrome 扩展的 Page Action 中自定义滚动条

google-app-engine - 无法从 Chrome 扩展程序连接到本地主机

jquery - $.focus() 在 Chrome 中不起作用

python - selenium.common.exceptions.WebDriverException : Message: unknown error: unable to discover open pages while test execution through InstaPy and selenium

javascript - 如何使用 Chrome 扩展程序调用 Riot API?

CSS 比例图像在 Chrome 和 Firefox 上表现不同

google-chrome-devtools - 我如何知道我的 index.html 是否缓存在我的 CRA 应用程序中?为什么它不存在于网络选项卡中?

javascript - 谷歌浏览器应用程序开发是否允许您将 html 和 javascript 添加到本地存储的文件中,具体取决于用户