Skip to content

Commit

Permalink
Fix Triggers errors on VS Code json files #81
Browse files Browse the repository at this point in the history
  • Loading branch information
vfateev committed Nov 5, 2020
1 parent dd94c5d commit 97b04c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { parseJsonPointer, joinJsonPointer } from '../pointer';

export function parseJson(text: string): [JsonNode, any[]] {
const parseErrors = [];
const node = new JsonNode(json.parseTree(text, parseErrors));
const node = new JsonNode(json.parseTree(text, parseErrors, {allowTrailingComma: true}));
const normalizedErrors = parseErrors.map((error) => ({
message: json.printParseErrorCode(error.error),
offset: error.offset,
Expand Down

0 comments on commit 97b04c2

Please sign in to comment.