Paste JSON to get YAML, or YAML to get JSON – the direction is detected from what you paste. Handy for Kubernetes, Docker Compose and CI configs.
Questions
Are comments kept?
No. JSON has no comments, so YAML comments are lost when converting to JSON.