Unicode input is about JSON encoders, not about YAML.
ElectronicRU opened this issue · 4 comments
ElectronicRU commented
The last row of the table is misleading -- JSON spec has escape sequences, so the string is the same in all cells, but is expressed differently in JSON.
champignoom commented
Indeed. Adding ensure_ascii=False
to json.dumps()
should eliminates the difference.
ssokolow commented
The primary objective of this revision is to bring YAML into compliance with JSON as an official subset.
-- https://yaml.org/spec/1.2/spec.html
(As of YAML 1.2, it's officially intended that all valid JSON can be parsed as valid YAML.)
champignoom commented
@ssokolow How's that relevant here?
ssokolow commented
...it's not. I underestimated how sleep-deprived I am and misread the issue.
Sorry about that.