You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

altjson

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altjson

An alternative, more efficent, encoding for JSON.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

AltJSON.js

Build Status

Browser Support

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) {
	// Load via AMD.
});
// OR
var AltJSON = require("altjson"); // In node.
// OR
AltJSON; // When just included in a webpage.

AltJSON.encode([1,2,3]) //=> Uint8Array([0xC3,1,2,3])
AltJSON.decode(new Uint8Array([0x81])) //=> true

Keywords

JSON

FAQs

Package last updated on 09 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts