Skip to content

Comment on No JSON/MAPS interoperability in 17.0?

Comments

Prefixed length formats that don't make assumptions on encoding are a very good pick. The most important thing is that once you read the length, you can just bulk-read the payload without actually parsing it, that's up to the higher layer (if parsing is needed at all).

A general purpose serialization format that requires per-char processing is a terrible pick.

Agreed. I had to implement base64 encoding to pass data through JSON, yeah it works but seems terribly wasteful.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.