Sha256: 8bfb1825ceaa31e04eb55d48796bd1ebb599d61921f9ed632238482258c2ade3

Contents?: true

Size: 177 Bytes

Versions: 328

Compression:

Stored size: 177 Bytes

Contents

var stringify = require('../');

var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
var s = stringify(obj, function (a, b) {
    return a.key < b.key ? 1 : -1;
});
console.log(s);

Version data entries

328 entries across 180 versions & 26 rubygems

Version Path
immosquare-cleaner-0.1.31 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.30 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.30 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.29 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.29 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.28 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.28 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.27 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.27 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.26 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.26 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.25 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.25 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.24 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.24 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.23 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.23 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.22 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.22 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.21 node_modules/fast-json-stable-stringify/example/key_cmp.js