Fork me on GitHub

BJSON.coffee

A Binary JSON implementation for browsers using CoffeeScript.

Why bother with Binary JSON?

  • JSON can't encode typed arrays
  • 5-10% smaller than JSON
  • Can encode any JSON object

How do I use BJSON?

var my_arraybuffer = BJSON.serialize(my_json_object);
And remember that you now have an ArrayBuffer.

Where do find the specification?

The specification is available from bjson.org.

Test BJSON.coffee now

to see if BJSON.coffee works in your browser.

Browser Compatibility