Fork me on GitHub

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

Test now

to see if works in your browser.

Browser Compatibility