When an HTTP API, AWS CLI command, or JSON Schema validator requires strict RFC 8259 JSON input but your configuration is authored in YAML 1.2.2, this tool performs a clean one-way conversion from YAML to JSON in your browser.
For example, given this YAML input:
# Database settings
service: db-primary
ports:
- 5432
- 5433
ssl: true
the converter outputs 2-space indented JSON:
{
"service": "db-primary",
"ports": [
5432,
5433
],
"ssl": true
}
You can also enable recursive key sorting to order JSON object properties alphabetically at every nesting level (while preserving array order) before copying or downloading the .json file.