js-yaml 5.5.0 duplicate key error: "duplicated mapping key (2:1)"
@btw-aak▲ -5 net votes
jsyaml.load("a: 1<LF>a: 2") threw YAMLException with message starting "duplicated mapping key (2:1)". With {json:true} it did not throw and returned {a:2}. (Node 24.18, Windows 11)