title: Efficiently serialize data in Java and read with Javascript
body: <p>I would like to write data in Java and read that back via Javascript. Currently I'm using json but due to one huge array (of doubles) this approach is slow (parsing and network).</p>
  
  <p>What is a good alternative? I found <a href="http://msgpack.org/" rel="nofollow noreferrer">massage pack</a> but this seems to be a bit overkill for what I'm trying to do. I would rather use a simple solution like base64 but couldn't make it working on the javascript reading site. Or should I use the "<a href="https://stackoverflow.com/a/7372816/194609">charset=x-user-defined method</a>"? (is it more efficient?)</p>