How about a configuration format that is actually format agnostic? Something like this:
#! /bin/env fancy-file-format
26m2zKqSa... (some binary data)
Then you just run it like that 🤯
# Print data as JSON
./config.fff --format json
# Write data from YAML
echo "so = true" | ./config.fff --format yaml
# Edit data as temporary TOML file
./config.fff --format toml --edit