Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEi 123
6,924 Pointsincorrect syntax near '/'
on Json File in I get this error:
incorrect syntax near '/'
The File is:
// Place your setting in this file to overwrite the default setting
"mssql.connections": [ { "server": "E", "database": "Apple", "authenticationType": "SqlLogin", "user": "apple", "password": "", "savePassword": true, "profileName": "apple" } ],
The problem is in the note " // ", How I can fix it?
Thanks Very Much all helper :)
2 Answers
doesitmatter
12,885 Pointsthis should work I think:
{"mssql.connections": [ { "server": "E", "database": "Apple", "authenticationType": "SqlLogin", "user": "apple", "password": "", "savePassword": true, "profileName": "apple" } ]}
doesitmatter
12,885 PointsI don't think the JSON file should have a comment inside of it, this will be considered as data, check out this topic on stack overflow
Ei 123
6,924 Pointsthank First Last but if I rid the comment, i get another error on this line: "mssql.connections": [ " - the error is on " :" - colon.. :( what I have to do ?
Ei 123
6,924 PointsEi 123
6,924 Pointsthank you :)