- What is JSON5?
- An extension of JSON that allows comments, trailing commas, single-quoted strings, and unquoted identifier keys — effectively 'JavaScript object literals as a format'. Popular in config files (Tauri, Babel, ESLint).
- Can I convert back and forth?
- Yes — JSON5 → JSON strips comments and normalizes quotes; JSON → JSON5 is a no-op structurally but lets you hand-edit the result with comments.
- Are JSON5 files valid JSON?
- No. JSON5 is a superset syntactically but most JSON parsers reject it. Convert to strict JSON before storing in a system that expects RFC-8259.
- What happens to JSON5 comments during conversion?
- They're stripped. Keep a hand-maintained JSON5 source if comments matter and commit the converted JSON as a build artifact.