Search code examples
javascriptjsonhtmlfirefox-os

Error in manifest file for Firefox OS?


Why does this manifest file throw and error on the name in the developer section?

{
"name":"Hello World",
"description":"Our first application",
"launch_path":"/hello.html",
"version":"1.0",
"developer":"
         "name":"Simple Programmer",
         "url":"http://simpleprogrammer.com"
},
"icons":{
    "60":"/icon_60.png"
},
"default_locale":"en"
}

enter image description here


Solution

  • Because it's not a valid JSON, specifically this part:

    "developer":"
             "name":"Simple Programmer",
             "url":"http://simpleprogrammer.com"
    },
    

    should be:

    "developer": {
             "name":"Simple Programmer",
             "url":"http://simpleprogrammer.com"
    },
    

    Note the change in the first line - opening curly bracket ({) instead of a quotation mark (").