manifest.json

Download google-chrome-extension eBook

Remarks

Official documentation

Manifest File Format

Format

Manifest file is written in JSON (JavaScript Object Notation) format.

This format differs from more loose rules of writing object literals in JavaScript code. Among important differences:

  • Every key name and string literal must be in double quotes.

    • Correct: "key": "value"

    • Wrong: key: "value", 'key': 'value'

  • No comments are allowed by the format.

    • Wrong: "key": "value" // This controls feature foo
  • Strict comma rules: items separated by commas, no dangling commas.

    • Correct:

      {
        "foo": "bar",
        "baz": "qux"
      }
      
    • Wrong (comma missing):

      {
        "foo": "bar"
        "baz": "qux"
      }
      
    • Wrong (dangling comma):

      {
        "foo": "bar",
        "baz": "qux",
      }
      

Related Examples

Stats

54 Contributors: 2
Saturday, July 23, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook