user285564
user285564

Reputation: 1

Simulator error while adding Firefox OS app to simulator

I've just developed an app for Firefox OS.But when I opened the simulator and tried to add the app into it; it shows some error code like the following:

The webapp manifest isn't a valid JSON file: SyntaxError: JSON.parse: bad control character in string literal at line 2 column 24 of the JSON data at: file:///directory.../manifest.webapp

What is the problem?

Upvotes: 0

Views: 298

Answers (1)

Jan Jongboom
Jan Jongboom

Reputation: 27323

When having problems with the format of your manifest file, throw it through JSONLint. When you paste your manifest in there it will highlight the following line:

        "url": "abcd.com";

With error message:

Parse error on line 12:
...   "url": "abcd.com";    },    "defaul
-----------------------^
Expecting '}', ':', ',', ']'

So there we have it. Need to be replaced by a ,.

Upvotes: 0

Related Questions