What it is
JSON, YAML, and TOML all represent structured data. YAML favors human-readable indentation and comments, TOML favors an explicit key-value table syntax popular for config files, and JSON is the strict, comment-free format most APIs expect.
When to use it
Convert between them when editing a Kubernetes manifest by hand, turning a Cargo.toml or pyproject.toml into JSON to inspect it, or checking how a YAML anchor expands.
Gotchas & limits
Conversion isn't fully lossless: comments, anchors, and formatting style are dropped when round-tripping through another format, and TOML specifically requires a top-level object, so a JSON array or bare value can't be converted to TOML.