我想将我的应用上传到Firefox市场。但是在上传我的应用时,验证错误显示:
webapp清单无效JSON。
我正在使用此清单代码:
O(n^2)
但是,如果删除浏览器权限的描述部分,则会出现错误消息:
错误:'浏览器' Web App Manifest的节点需要一个
{ "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.", } } }
元素,但未找到该元素。您可以在https://developer.mozilla.org/docs/Web/Apps/Manifest
找到更多信息节点:root>权限>浏览器
manifest.webapp
有人能帮我解决这个问题吗?
答案 0 :(得分:4)
此行中有额外的,
"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."
}
}
}
答案 1 :(得分:0)
JSON验证器是您的朋友:https://jsonformatter.curiousconcept.com/