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

Externalise Erlang Term things (_revs, replication _ids) #1530

Open
wohali opened this issue Aug 7, 2018 · 2 comments
Open

Externalise Erlang Term things (_revs, replication _ids) #1530

wohali opened this issue Aug 7, 2018 · 2 comments
Labels
Projects

Comments

@wohali
Copy link
Member

wohali commented Aug 7, 2018

@nolanlawson:

Prior discussion in Pouch: pouchdb/pouchdb#4642

@davisp:

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: https://github.com/davisp/jsonical

@nolanlawson:

Yeah in JS a popular one is: https://github.com/substack/json-stable-stringify

We fixed some of this with a recent CVE, but it doesn't address the original request.

@wohali wohali added this to In Discussion in Roadmap Aug 7, 2018
@wohali wohali moved this from Proposed for 3.x to Proposed for 4.x+ in Roadmap Jul 11, 2019
@wohali wohali moved this from Proposed for 4.x+ to Proposed (backlog) in Roadmap Jul 11, 2019
@wohali wohali removed the dbcore label Jun 25, 2020
@meSmashsta
Copy link

meSmashsta commented Apr 6, 2021

@meSmashsta
Copy link

Oh man sorry I thought this was PouchDB!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Roadmap
  
Proposed (backlog)
Development

No branches or pull requests

2 participants