samn

samn/json-stable-stringify

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results

JavaScript
13
3
Other

json-stable-stringify is a Node.js library that provides a deterministic version of JSON.stringify() with custom sorting to produce consistent hashes from stringified results. It's designed for developers who need reliable, predictable JSON serialization, particularly useful for generating consistent hashes or comparing JSON data. The library includes options for custom comparison functions, pretty-printing with indentation, and a replacer parameter similar to native JSON.stringify().

Total donated
Undistributed
Share with your subscribers: