website/content/en/highlights/2020-11-25-json-yaml-config-formats.md
To ensure Vector fits into existing workflows, like Kubernetes, we've added support for JSON and YAML config formats in addition to TOML. YAML is now the recommended and default configuration format, but users are welcome to use TOML and JSON as they see fit.
YAML is the preferred language in the K8s ecosystem, and to ensure Vector does not feel awkward in the Kubernetes platform we now support YAML for our pipeline definitions.
A bonus to supporting JSON is the enablement of data templating languages like Jsonnet and Cue. For example, a Vector user has already built an unofficial Jsonnet library for Vector.
Use Vector as you normally work, but pass it yaml or json config files:
vector --config /etc/vector/vector.json
Vector will infer the format from the extension. This is especially useful when passing multiple config files via globs:
vector --config /etc/vector/*
Additionally, we've provided format specific flags for edge cases:
vector --config-json /etc/vector/vector.json
Head over to the configuration docs for more info.