Msgpack.js is a project mainly written in JavaScript, it's free.
MessagePack JavaScript implementation