mirkokiefer

mirkokiefer/canonical-json

Stable JSON.stringify() for JavaScript/TypeScript — deterministic, key-sorted output - canonical JSON.

JavaScript
40
9
MIT License

This package provides a deterministic `JSON.stringify()` implementation that guarantees canonical output by sorting object keys, ensuring the same object always serializes to the same string. It's designed for JavaScript/TypeScript developers who need stable JSON serialization for use cases like caching, hashing, or comparison, offering both an in-place sorted approach and a copy-based alternative with optional custom key ordering.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mirkokiefer/canonical-json

Account's avatar
simple, flexible, fun test framework
Account's avatar
TypeScript definitions for node

Support the repos that depend on mirkokiefer/canonical-json

Top contributors

mirkokiefer's profile
mirkokiefer
27 contributions
cstroe's profile
cstroe
2 contributions
Krinkle's profile
Krinkle
2 contributions
nylen's profile
nylen
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet