-
Notifications
You must be signed in to change notification settings - Fork 0
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
Externalise Erlang Term things (_revs, replication _ids) #54
Comments
Prior discussion in Pouch: pouchdb/pouchdb#4642 |
I just remembered that I wrote a Python JSON canonicalizer a long time ago. The basics are: sort keys when serializing, no added whitespace, strings are Unicode NFD normalized encoded in UTF-8, and floats are serialized using dtoa.c (or similarly compatible code, ie, 1.1 is printed as 1.1, not as 1.100000000000000088817842). For strings I wonder if it'd be better to requiring anything that's non-ascii to be encoded using the \u escape sequences. |
I should probably add a link to the thing: |
Yeah in JS a popular one is: https://github.com/substack/json-stable-stringify |
Migrated to apache/couchdb#1530 |
No description provided.
The text was updated successfully, but these errors were encountered: