function readJsonFile()

in jshint-server/src/server.ts [168:177]


		function readJsonFile(file: string, extendedFrom?: string): any {
			try {
				return JSON.parse(stripComments(fs.readFileSync(file).toString()));
			}
			catch (err) {
				let location = extendedFrom ? `${file} extended from ${extendedFrom}` : file;
				that.connection.window.showErrorMessage(`Can't load JSHint configuration from file ${location}. Please check the file for syntax errors.`);
				return {};
			}
		}