Canonical json serialization

Hello,
I’m building a Phoenix app where I’d like to export/serialize parts of some of my ecto records in a format suitable for cryptographic hashing/signing/verification.

I’m thinking about representing the data in JSON, but I’m concerned that there could be many different JSON representations of the data, which could make verifying/comparing a problem.

There appear to be many different “canonical json” type projects… tjson, IETF drafts, …

Is there any consensus forming around a good approach to doing this? Are there Elixir implementations available?

1 Like

I personally follow GraphQL anymore, it even got an open standardization body for it now (no longer under facebook control)!. :slight_smile: