We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcf7a9 commit 96277efCopy full SHA for 96277ef
packages/schematics/angular/utility/json-file.ts
@@ -36,7 +36,7 @@ export class JSONFile {
36
}
37
38
const errors: ParseError[] = [];
39
- this._jsonAst = parseTree(this.content, errors);
+ this._jsonAst = parseTree(this.content, errors, { allowTrailingComma: true });
40
if (errors.length) {
41
const { error, offset } = errors[0];
42
throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${printParseErrorCode(error)} at location: ${offset}.`);
0 commit comments