admin管理员组文章数量:1026989
My manifest is shown down below. I'm not sure why Google Chrome always says that it is not a valid JSON and Dictionary Keys are not quoted. Any help is appreciated. Thanks.
{
"name": "Auto Add to Cart",
"version": "1.2",
"manifest_version": 2,
}
My manifest is shown down below. I'm not sure why Google Chrome always says that it is not a valid JSON and Dictionary Keys are not quoted. Any help is appreciated. Thanks.
{
"name": "Auto Add to Cart",
"version": "1.2",
"manifest_version": 2,
}
Share
Improve this question
edited Aug 11, 2013 at 21:01
Felix Kling
818k181 gold badges1.1k silver badges1.2k bronze badges
asked Aug 11, 2013 at 19:41
user2672984user2672984
91 silver badge4 bronze badges
5
- Nice pretty pictures: json – Paul Commented Aug 11, 2013 at 19:43
- 1 You should check out JSONLint, it's a great tool for validating JSON. – ixchi Commented Aug 11, 2013 at 19:45
- This looks like someone created their JSON as a string in a loop. – Paul Commented Aug 11, 2013 at 19:46
- @Paul As it's a manifest for a Chrome extension, it's probably just bad copy-pasta. – Denys Séguret Commented Aug 11, 2013 at 20:01
- Still get the same message from Google Chrome. Even after fixing what was wrong. – user2672984 Commented Aug 11, 2013 at 22:23
1 Answer
Reset to default 6You can't have a trailing ma in JSON. Remove the ma after the 2
.
Here's how an object is defined :
(source : json)
My manifest is shown down below. I'm not sure why Google Chrome always says that it is not a valid JSON and Dictionary Keys are not quoted. Any help is appreciated. Thanks.
{
"name": "Auto Add to Cart",
"version": "1.2",
"manifest_version": 2,
}
My manifest is shown down below. I'm not sure why Google Chrome always says that it is not a valid JSON and Dictionary Keys are not quoted. Any help is appreciated. Thanks.
{
"name": "Auto Add to Cart",
"version": "1.2",
"manifest_version": 2,
}
Share
Improve this question
edited Aug 11, 2013 at 21:01
Felix Kling
818k181 gold badges1.1k silver badges1.2k bronze badges
asked Aug 11, 2013 at 19:41
user2672984user2672984
91 silver badge4 bronze badges
5
- Nice pretty pictures: json – Paul Commented Aug 11, 2013 at 19:43
- 1 You should check out JSONLint, it's a great tool for validating JSON. – ixchi Commented Aug 11, 2013 at 19:45
- This looks like someone created their JSON as a string in a loop. – Paul Commented Aug 11, 2013 at 19:46
- @Paul As it's a manifest for a Chrome extension, it's probably just bad copy-pasta. – Denys Séguret Commented Aug 11, 2013 at 20:01
- Still get the same message from Google Chrome. Even after fixing what was wrong. – user2672984 Commented Aug 11, 2013 at 22:23
1 Answer
Reset to default 6You can't have a trailing ma in JSON. Remove the ma after the 2
.
Here's how an object is defined :
(source : json)
本文标签: javascriptManifest is not Valid JSON What is wrongStack Overflow
版权声明:本文标题:javascript - Manifest is not Valid JSON. What is wrong? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745663077a2162009.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论