I accidentally used YAML.parse instead of JSON.parse, and it… worked?
That, dear reader, is the story of how I learnt that YAML is a superset of JSON.