4 ms·
Instead of inventing some new delimited formats, we also already have nearly ubiquitous interchange formats like JSON. If you wanted to reduce the in memory foo
by WorldMaker 2y ago
Instead of inventing some new delimited formats, we also already have nearly ubiquitous interchange formats like JSON. If you wanted to reduce the in memory footprint versus plaintext encoding the JSON there are good options like BSON and CBOR.
- packetlost 2y agoJSON isn't streamable. Neither is CBOR for that matter, though it's not quite as bad.
- superb_dev 2y agoIndividual JSON records are streamable
- packetlost 2y agoJSON itself, no, that's not the case. If you accept an extension like JSON Lines, it can be. Many decoders will barf if you have multiple top level objects in the same file. If you want portable, non-ephemeral data JSON Lines is a poor choice.