4 ms·
"Object keys must be unique."" How should the following be serialized (if at all)? {"a":0,"\u0073\u0323\u0307":1,"\u1E69":2,"Z":3} Note that I'm using the \u
by dsp1234 10y ago
"Object keys must be unique.""
How should the following be serialized (if at all)?
{"a":0,"\u0073\u0323\u0307":1,"\u1E69":2,"Z":3}
Note that I'm using the \u forms even though they aren't allowed via the specification because, HN doesn't show unicode combining properly sometimes, and so that's it's clear to see that it's a different byte pattern.
- seagreen 10y agoThe plan is to go codepoint by codepoint in ascending order: `{"Z":3,"a":0,"\u0073\u0323\u0307":1,"\u1E69":2}` See this issue for the discussion: https://github.com/seagreen/Son/issues/1 https://github.com/seagreen/Son/issues/1 My current understanding is that RFC 7159 doesn't require Unicode normalization to be performed, if it does we're in trouble: https://tools.ietf.org/html/rfc7159 https://tools.ietf.org/html/rfc7159