Firefox OS 应用提交:"The webapp manifest is not valid JSON."

Firefox OS app submission: "The webapp manifest is not valid JSON."

我想将我的应用程序上传到 Firefox 市场。但是在上传我的应用程序时,验证错误显示:

The webapp manifest is not valid JSON.

我正在使用这个清单代码:

{
  "name": "Web browser",
  "description": "A simple web browser.",
  "launch_path": "/index.html",
  "type": "privileged",
  "icons": {
    "512": "/img/firefox512.png",
    "128": "/img/firefox128.png"
  },
  "developer": {
    "name": "Gourab"

  },

  "permissions": {
    "browser": {
    "description": "Required to use browser API.",
    }
  }

}

但是如果我删除了浏览器权限的描述部分,那么错误信息是:

Error: The 'browser' node of the Web App Manifest expects a description element, which was not found.

You can find more information at https://developer.mozilla.org/docs/Web/Apps/Manifest

Node: root > permissions > browser
manifest.webapp

谁能给我解决这个问题的方法?

这一行多了,

"description": "Required to use browser API.", // <--- remove this , 

删除它,你就可以起飞了

有效

{
  "name": "Web browser",
  "description": "A simple web browser.",
  "launch_path": "/index.html",
  "type": "privileged",
  "icons": {
    "512": "/img/firefox512.png",
    "128": "/img/firefox128.png"
  },
  "developer": {
    "name": "Gourab"

  },

  "permissions": {
    "browser": {
    "description": "Required to use browser API."
    }
  }

}

一个 JSON 验证者是你的朋友:https://jsonformatter.curiousconcept.com/