calculate your json object checksum (supports: SHA256)
node.js
npm install json-checksum
amd
require(["json-checksum"],function(checksum){})
wild front
<script src="json-checksum.js"></script>
<script>
var obj={
"i": "am sleepy"
};
var checksum=checksum(obj);
console.log(checksum);
</script>
these two JSON-object below, is different
{
"a": "aaaaa",
"b": "bbbbb"
}
{
"b": "bbbbb",
"a": "aaaaa"
}
I sorted it
Because I want it. need other? fork yourself.
test yourself. works for me.
MIT