LINT_DUPLICATE_KEY
Two properties in the same object use the same key. Most parsers keep the later value, which can hide bugs in copied API payloads and config files.
Analysez le JSON pour les problemes courants โ cles en double, virgules finales, commentaires, guillemets simples.
Two properties in the same object use the same key. Most parsers keep the later value, which can hide bugs in copied API payloads and config files.
Trailing commas are common in JavaScript and JSON5, but strict JSON rejects them. Remove the comma before the closing brace or bracket.
JSON does not support // comments. If you need comments, switch to a JSONC or JSON5-compatible parser instead of strict JSON.
Block comments are not valid JSON. Remove them or convert the file to a format that explicitly supports comments.
Strict JSON requires double-quoted strings and keys. Single-quoted strings usually mean the input is JSON5 or a JavaScript object literal.
Object keys must be quoted in JSON. Unquoted keys are allowed in JavaScript object literals and JSON5, but not in RFC 8259 JSON.
A byte-order mark at the start of the file can confuse downstream tools. Removing it is a safe normalization step.
Unescaped control characters inside strings can break parsing and transport. Escape them explicitly or remove them.
Empty input does not contain JSON to check. Paste a payload, config, or response body before running lint.
This advisory groups comment, quote, and trailing-comma patterns that suggest the input is JSON5-like rather than strict JSON.
Duplicate keys, trailing commas, line comments (//), block comments (/* */), single-quoted strings, unquoted keys, byte-order mark (BOM), unescaped control characters, and empty input. It also detects JSON5-like patterns and offers to convert to strict JSON.
Two or more properties in the same object have the same key name. JSON parsers silently pick one (usually the last), which often masks bugs. The linter shows the locations of all occurrences.
No. Strict JSON (RFC 8259) does not allow trailing commas. JSON5 does. If your input has trailing commas, JSON Lint will flag them and offer to remove them via "Convert to strict JSON."
No. Strict JSON does not support // or /* */ comments. They are allowed in JSON5, JSONC (used by VS Code), and JavaScript object literals. JSON Lint flags them and can strip them.
JSON5 is a superset of JSON that allows comments, trailing commas, single-quoted strings, unquoted keys, and more. It is not supported by standard JSON parsers. JSON Lint detects JSON5 patterns and offers a one-click conversion to strict JSON.
It produces a copy with: BOM stripped, comments removed, trailing commas removed, single-quoted strings re-quoted with double quotes, unquoted keys quoted, and the result re-run through Lint to confirm zero residual findings. Your original input is never modified โ the converted copy appears in the output pane.