Why Do YAML Anchors and Merge Keys Disappear When I Convert to JSON?
YAML anchors and merge keys are a writing shortcut, not a JSON feature. See a side-by-side example of how a YAML to JSON converter expands aliases and merges into repeated values, why that can make JSON output larger, and why converting back cannot restore the original anchors.