Guides
Choosing Web Data and Configuration Formats
Consider JSON for machine exchange such as APIs, YAML for configuration people edit, and XML for existing schema-based integrations.
Which format should you choose?
Choose by the role each file plays in your workflow.
- Web APIs → JSON
- Human-edited settings → YAML
- Existing schema or contract → XML
Use the format the recipient requires
All three represent structured data, but their syntax, comments, type interpretation, and schema workflows differ. Check the contract and tools first.
Formats to consider
Before you export
- Do not assume YAML is a strict superset of JSON.
- Confirm encoding, types, and schema handling with the recipient.