YAML and JSON hold the same data, until they do not
JSON and YAML describe the same things: maps, lists, text, numbers, true, false and null. Every JSON document is almost valid YAML already. So converting between them looks like a simple job, and most of the time it is. The trouble is in a few places where the two formats, or two versions of YAML, read the same characters as different values. A converter that ignores those places changes your data without telling you.
The best known case is the boolean. YAML 1.1, which PyYAML and many older tools still follow, reads yes, no, on, off, y and n as true or false. YAML 1.2, the current version, reads them as text. A GitHub Actions file with on: push means the key "on" to one reader and the key true to another. This tool reads YAML 1.2 by default and has a switch for 1.1. When it writes YAML, it puts quotes around every string a 1.1 reader would misread, such as "yes", "NO", "1.0" and "2024-01-01". Quotes are harmless to a 1.2 reader, so the output means the same thing to both.
Numbers are the second case. A database ID such as 12345678901234567890 is longer than a JavaScript number can hold, so a converter built on JSON.parse quietly turns it into 12345678901234567000. This tool keeps whole numbers as text while it works and writes them back digit for digit, in both directions. Infinity and not-a-number are the other edge: YAML has .inf and .nan, JSON has no way to write them. They become null, and the note under the result says how many were changed, so you can decide what they should be.
Structure is the third. YAML can have several documents in one file, separated by ---. JSON has one value per file, so several documents become an array with one item each, and the note says so. YAML anchors and aliases let one value appear in many places. JSON has no references, so each alias is replaced by a copy of its value, and merge keys are merged in. Duplicate keys are refused with their line number, because a JSON reader would keep only one of them and lose the other without a word.
Two things do not survive the trip. Comments are dropped, because JSON has nowhere to store them. Formatting choices such as block or flow style, and quoting you chose by hand, are also not kept: the YAML that comes out is written fresh in block style. Everything runs in your browser, up to 500 KB at a time, so a configuration file with passwords or tokens in it is never sent anywhere.