
https://github.com/lucianofedericopereira/json-canon
Lint, re-encode, and much more
Take JSON produced by anything — CPython json, pandas to_json, Nim std/json, JS, hand-edited files with comments and trailing commas — and emit one deterministic byte-stream. Then cmp, sha256, and git diff on the output actually mean something, no matter who produced the input.
Two independent implementations (Python and Nim) that are byte-identical by construction.
MIT