How do you plan to encode binary data in your JSON-based protocol? Base64? This will only increase the overhead.<p>While the human readability of JSON is nice, it has some serious flaws when the goal is to handle arbitrary data.<p>I have yet to decide what kind of protocol to use in my own vis editor[1], hence why I&#x27;m asking.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;martanne&#x2F;vis</a>