Option 1
JSON
Strict, unambiguous, braces-and-commas syntax — the web's default data format.
Best for
API responses, data interchange between services, configuration that's generated programmatically, anything where machine parsing speed and correctness matter more than human-editability.
Pros
- Unambiguous — the grammar is tiny, parsers are fast, no whitespace traps.
- Universal library support in every language in existence.
- Native to JavaScript — no parsing needed for web payloads.
- Strict type rules — 'true' vs 'True' vs 'yes' won't silently parse as different things.
- Excellent tooling — schema validation (JSON Schema), formatters, linters, TypeScript generation.
Cons
- No comments — your config can't self-document.
- Trailing commas are a syntax error — annoying when hand-editing.
- Verbose for hand-written config — lots of braces and quotes.
- Hard to diff meaningfully when the same data is re-ordered.
- No date/time type — dates are just strings by convention.