deterministic version of JSON.stringify()
so you can get a consistent hash
from stringified results.
var stringify = require('json-stable-stringify');
var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
console.log(stringify(obj));
output:
{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}
via component:
component install eldargab/json-stable-stringify
MIT