This direction can lose things, because YAML is the larger format
Converting JSON to YAML is lossless, because YAML is a superset. Coming back the other way narrows the data model, and several YAML features have no JSON equivalent at all.
Comments are the first casualty and usually the most significant. Everything after `#` is metadata for humans, and the JSON data model has nowhere to store it. If the YAML file was your documented source of truth, keep it - the JSON is a build artefact, not a replacement.
Anchors and aliases are resolved rather than preserved. An anchored block referenced in five places becomes five full copies in the JSON, since JSON cannot express a reference. The data is correct and the document is larger. Non-string mapping keys are the third gap: YAML permits any type as a key, and JSON requires strings, so a numeric or boolean key has to be coerced.