DEV Community

Discussion on: YAML vs. XML vs. JSON for Configuration

Collapse
 
avalander profile image
Avalander

If it's simple enough, I'll just set it as a bunch of environment variables in an rc file and be done with it.

If I'm working with python or javascript, I'll just create a dict or object in a config.{py|js} file.

For CI pipelines and deployment jobs, I'm kinda used to YAML because CircleCI and I guess the support for multi-line values is quite handy.

Otherwise I guess I would go for JSON, but I haven't had to do that in ages.