invalid json - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports invalid JSON in <templatedata> tags. This rule is superseded by the more advanced vscode-json-languageservice in LanguageService.prototype.provideDiagnostics.
Examples
Examples of incorrect code for { "invalid-json": 2 }:
<templatedata>a</templatedata>
Examples of correct code for { "invalid-json": 2 }:
<templatedata></templatedata>
Options
duplicate
⚠️ By default, this rule reports duplicate object keys as warnings. This can be configured by providing a duplicate option with a severity value.
Examples of incorrect code for { "invalid-json": [ 0, { "duplicate": 2 } ] }:
<templatedata>{"a": 1, "a": 2}</templatedata>
Examples of correct code for { "invalid-json": [ 2, { "duplicate": 0 } ] }:
<templatedata>{"a": 1, "a": 2}</templatedata>