最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - Manifest is not Valid JSON. What is wrong? - Stack Overflow

matteradmin8PV0评论

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
Add a ment  | 

1 Answer 1

Reset to default 6

You can't have a trailing ma in JSON. Remove the ma after the 2.

Here's how an object is defined :

(source : json)

Post a comment

comment list (0)

  1. No comments so far