Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding to canonical format (via RFC 8785) #222

Open
jamesaimonetti opened this issue Nov 4, 2022 · 1 comment
Open

Encoding to canonical format (via RFC 8785) #222

jamesaimonetti opened this issue Nov 4, 2022 · 1 comment

Comments

@jamesaimonetti
Copy link

https://www.rfc-editor.org/rfc/rfc8785#name-serialization-of-strings stipulates encoding of \u000F MUST be \u000f (more generally \uhhhh vs \uHHHH).

Any interest in an encoding option to "canonical" form? Helpful for HMACs and the like.

@davisp
Copy link
Owner

davisp commented Nov 8, 2022

I'd accept a [canonical] option patch. The lower case hex stuff is fairly trivial, but the sorted UTF-16 encoded keys is a bit of a head scratcher. Perhaps do that in Erlang before the ErlJSON object is passed to the encoder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants