As an exrra measure to ensure that all collaborative clients really have the same document, we stringify the document and create a checksum. This checksum is then sent to the server a few seconds after everyone has stopped typing. If one collaborator has a checksum than the others, that client requests a full copy from the server.
Unfortunately, json stringify outputs don’t need to be the same, and I recently found out that Firefox and Chrome produce slightly different outputs, which means that the checksums don’t match.
My question therefore: any good ideas of how to create a browser independent checksum from pm.mod.collab.versionDoc?