Colon error when importing JSON file into a HTML Document

2038 views html

If I write my JSON file like this:

      "title":"eclipse iss",

I get error on all the colons:

SyntaxError: Unexpected token :

But if I change all the colons to semicolons it works just fine.

      "title";"eclipse iss",

Can anyone tell me Why and how I can fix it?

answered question

1 Answer


I think you have to write the name of the var without the "

posted this

Have an answer?


Please login first before posting an answer.