I am using JSDoc 3.4.3 and I'm trying to run config.json file to create documentation for multiple files. However every time I try to run the following command:
jsdoc -c conf.json
I get this error:
Cannot parse the config file conf.json: SyntaxError: Unexpected token : Exiting JSDoc because an error occurred. See the previous log messages for details.
I even tried copying and pasting the example config file found in official JSDoc documentation http://usejsdoc.org/about-configuring-jsdoc.html
"source": {
"include": [ "myProject/a.js", "myProject/lib", "myProject/_private" ],
"exclude": [ "myProject/lib/ignore.js" ],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
}
But that gives the same error.
Any ideas on how to fix the issue? Thanks!