Move a config file from YAML to TOML. Nested mappings become dotted keys such as service.name, and anchors and merge keys are expanded because TOML has no references.
# Service config
service:
name: api
replicas: 3
ports:
- 8080
- 8443
defaults: &defaults
timeout: 30
retries: 2
production:
<<: *defaults
timeout: 60service.name = 'api'
service.replicas = 3
service.ports = [
8080,
8443,
]
defaults.timeout = 30
defaults.retries = 2
production.timeout = 60
production.retries = 2ParseBox shows this note under the output, so nothing is lost without a warning.
ParseBox runs entirely in your browser. Your text is never uploaded, logged or stored on a server, so it is safe to paste API responses, tokens and config files.