JSON
Option A
Strict and explicit
Option B
Less friendly
FAQ Guide
Use JSON when strict machine parsing matters; use YAML when human-readable configuration matters and indentation is controlled.
Strict and explicit
Less friendly
Readable
Indentation-sensitive
APIs
Config docs
Indentation, implicit values, and copied whitespace can change meaning.
Strict structure makes inputs easier to validate and compare.
Keep examples formatted, validated, and versioned.