Common JSON Syntax Rules & Error Recovery
JSON is a strict data interchange format. Unlike standard JavaScript object literals, RFC 8259 imposes rigid syntactic rules:
- 不允许末尾多余逗号 (Trailing Commas):Trailing commas in arrays or objects break strict RFC parsers. The auto-fix engine cleans them automatically.
- 键名与字符串必须使用双引号:Keys and string values must strictly use double quotes, not single quotes or unquoted identifiers.
- 支持一键按字母顺序重排键名:Alphabetical key sorting normalizes objects across API responses for cleaner Git diff comparisons.