2 ms·
If efficiency and compactness are your problem, JSON is not the best idea anyway, look at protobufs and the ilk. JSON works where you need simplicity on the ve
by nine_k 7y ago
If efficiency and compactness are your problem, JSON is not the best idea anyway, look at protobufs and the ilk.
JSON works where you need simplicity on the verge of being dumb, and human-readability.
- SlowRobotAhead 7y agoJSON human readable is extremely nice. FWIW, I’ve found some binary formats like CBOR and MsgPack to be so almost human readable as binary when you are even slightly familiar with the format, or just convert almost instantly to readable JSON. When I was developing a three component system, protos were not working for me. Too many schema changes and implementation differences to make the reduced binary size worth it. This was partly because the best protobuffer implementation in C (nanoPB) is just the hobby project of some dude, but mostly because coordinating schemas was annoying.