AltJSON.js


Javascript implementation of AltJSON encoding. AltJSON is an alternative
encoding for JSON designed to be more efficient while maintaining the same data
model. Use JSON as your regular interface but speed it up when available using
AltJSON.
More information about AltJSON is available
here.
Usage
AltJSON.js works in node and in the browser. However it requires the Encoding
API which is not implemented in all environments. In node the polyfill will
be installed as a dependency but for browsers such as chrome
a polyfill can be used.
require(["altjson"], function(AltJSON) {
});
var AltJSON = require("altjson");
AltJSON;
AltJSON.encode([1,2,3])
AltJSON.decode(new Uint8Array([0x81]))